WP_Block_Metadata_Registry::get_plugin_dir()wp-includes/class-wp-block-metadata-registry.php | Gets the normalized WordPress plugin directory path.
|
WP_Block_Metadata_Registry::get_wpinc_dir()wp-includes/class-wp-block-metadata-registry.php | Gets the WordPress ‘wp-includes’ directory path.
|
WP_Block_Metadata_Registry::find_collection_path()wp-includes/class-wp-block-metadata-registry.php | Finds the collection path for a given file or folder.
|
WP_Block_Metadata_Registry::register_collection()wp-includes/class-wp-block-metadata-registry.php | Registers a block metadata collection.
|
WP_Font_Collection::load_from_json()wp-includes/fonts/class-wp-font-collection.php | Loads font collection data from a JSON file or URL.
|
register_block_script_module_id()wp-includes/blocks.php | Finds a script module ID for the selected block metadata field. It detects when a path to file was provided and optionally finds a corresponding asset file with details necessary to register the script module under with an automatically generated module ID. It returns unprocessed script module ID otherwise.
|
get_block_asset_url()wp-includes/blocks.php | Gets the URL to a block asset.
|
wp_json_file_decode()wp-includes/functions.php | Reads and decodes a JSON file.
|
wp_generate_block_templates_export_file()wp-includes/block-template-utils.php | Creates an export of the current templates and template parts from the site editor at the specified path in a ZIP file.
|
register_block_script_handle()wp-includes/blocks.php | Finds a script handle for the selected block metadata field. It detects when a path to file was provided and optionally finds a corresponding asset file with details necessary to register the script under automatically generated handle name. It returns unprocessed script handle otherwise.
|
register_block_style_handle()wp-includes/blocks.php | Finds a style handle for the block metadata field. It detects when a path to file was provided and registers the style under automatically generated handle name. It returns unprocessed style handle otherwise.
|
register_block_type_from_metadata()wp-includes/blocks.php | Registers a block type from the metadata stored in the block.json file.
|
Theme_Installer_Skin::do_overwrite()wp-admin/includes/class-theme-installer-skin.php | Checks if the theme can be overwritten and outputs the HTML for overwriting a theme on upload.
|
WP_Recovery_Mode::get_extension_for_error()wp-includes/class-wp-recovery-mode.php | Gets the extension that the error occurred in.
|
_get_plugin_from_callback()wp-admin/includes/template.php | Internal helper function to find the plugin from a meta box callback.
|
wp_delete_file_from_directory()wp-includes/functions.php | Deletes a file if its path is within the given directory.
|
wp_privacy_generate_personal_data_export_file()wp-admin/includes/privacy-tools.php | Generate the personal data export file.
|
wp_validate_redirect()wp-includes/pluggable.php | Validates a URL for use in a redirect.
|
wp_debug_backtrace_summary()wp-includes/functions.php | Returns a comma-separated string or array of functions that have been called to get to the current point in code.
|
validate_file()wp-includes/functions.php | Validates a file name and path against an allowed set of rules.
|
plugins_url()wp-includes/link-template.php | Retrieves a URL within the plugins or mu-plugins directory.
|
plugin_basename()wp-includes/plugin.php | Gets the basename of a plugin.
|
wp_register_plugin_realpath()wp-includes/plugin.php | Register a plugin’s real path.
|
Example
A Simple example to normalize the theme include path
print_r($bS_incl_path);
showsUsing this function:
Without this function:
On a Windows server.