private function get_textdomain( $textdomain, $args ) {
		if ( strlen( $textdomain ) ) {
			return $textdomain;
		}

		if ( $args['theme'] ) {
			return $this->get_theme_name( $args['theme'] );
		}

		if ( $args['plugin'] && true !== $args['plugin'] ) {
			return $args['plugin'];
		}

		return 'YOUR-TEXTDOMAIN';
	}
private function get_textdomain( $textdomain, $args ) {
		if ( strlen( $textdomain ) ) {
			return $textdomain;
		}

		if ( $args['theme'] ) {
			return $this->get_theme_name( $args['theme'] );
		}

		if ( $args['plugin'] && true !== $args['plugin'] ) {
			return $args['plugin'];
		}

		return 'YOUR-TEXTDOMAIN';
	}
private function get_textdomain ( $ textdomain , $ args ) { if ( strlen ( $ textdomain ) ) { return $ textdomain ; } if ( $ args [ 'theme' ] ) { return $ this -> get_theme_name ( $ args [ 'theme' ] ) ; } if ( $ args [ 'plugin' ] && true !== $ args [ 'plugin' ] ) { return $ args [ 'plugin' ] ; } return 'YOUR-TEXTDOMAIN' ; }
If you're writing your files to your theme directory your textdomain also needs to be the same as your theme.
Same goes for when plugin is being used.
If you re writing your files to your theme directory your textdomain also needs to be the same as your theme . Same goes for when plugin is being used .