load_script_textdomain_relative_path

load_script_textdomain_relative_path

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-7.0

apply_filters('load_script_textdomain_relative_path') is found 1 times:

  • /wp-includes/l10n.php line 1316
    	 * @param string|false $relative  The relative path of the script. False if it could not be determined.
    	 * @param string       $src       The full source URL of the script.
    	 * @param bool         $is_module Whether the source belongs to a script module (true) or a classic script (false).
    	 */
    	$relative = apply_filters( 'load_script_textdomain_relative_path', $relative, $src, $is_module );
    
    	// If the source is not from WP.
    	if ( ! is_string( $relative ) ) {
    		return load_script_translations( false, $handle, $domain );
    	}
    
    

See this hook used in plugins: