WPDev.one
Core PHP Functions

Functions Reference

4125+ PHP functions available in the WordPress global namespace. Complete documentation with parameters, return values, and usage examples.

Showing 3701 to 3750 of 4125 functions (Page 75 of 83)
wp_tinymce_inline_scripts()

Adds inline scripts required for the TinyMCE in the block editor.

wp_default_packages()

Registers all the WordPress packages scripts.

$scripts
wp_scripts_get_suffix()

Returns the suffix that can be used for the scripts.

$type
wp_default_scripts()

Registers all WordPress scripts.

$scripts
wp_default_styles()

Assigns default styles to $styles object.

$styles
wp_prototype_before_jquery()

Reorders JavaScript scripts array to place prototype before jQuery.

$js_array
wp_just_in_time_script_localization()

Loads localized data on print rather than initialization.

wp_localize_jquery_ui_datepicker()

Localizes the jQuery UI datepicker.

wp_localize_community_events()

Localizes community events data that needs to be passed to dashboard.js.

wp_style_loader_src()

Administration Screen CSS for changing the styles.

$src $handle
print_head_scripts()

Prints the script queue in the HTML head on admin pages.

print_footer_scripts()

Prints the scripts that were queued for the footer or too late for the HTML head.

_print_scripts()

Prints scripts (internal use only)

wp_print_head_scripts()

Prints the script queue in the HTML head on the front end.

_wp_footer_scripts()

Private, for use in *_footer_scripts hooks

wp_print_footer_scripts()

Hooks to print the scripts and styles in the footer.

wp_enqueue_scripts()

Wrapper for do_action( 'wp_enqueue_scripts' ).

print_admin_styles()

Prints the styles queue in the HTML head on admin pages.

print_late_styles()

Prints the styles that were queued too late for the HTML head.

_print_styles()

Prints styles (internal use only).

script_concat_settings()

Determines the concatenation and compression settings for scripts and styles.

wp_common_block_scripts_and_styles()

Handles the enqueueing of block scripts and styles that are common to both

wp_filter_out_block_nodes()

Applies a filter to the list of style nodes that comes from WP_Theme_JSON::get_style_nodes().

$nodes
wp_enqueue_global_styles()

Enqueues the global styles defined via theme.json.

wp_should_load_block_editor_scripts_and_styles()

Checks if the editor scripts and styles for all registered block types

wp_should_load_separate_core_block_assets()

Checks whether separate styles should be loaded for core blocks.

wp_should_load_block_assets_on_demand()

Checks whether block styles should be loaded only on-render.

wp_enqueue_registered_block_scripts_and_styles()

Enqueues registered block scripts and styles, depending on current rendered

enqueue_block_styles_assets()

Function responsible for enqueuing the styles required for block styles functionality on the editor and on the frontend.

enqueue_editor_block_styles_assets()

Function responsible for enqueuing the assets required for block styles functionality on the editor.

wp_enqueue_editor_block_directory_assets()

Enqueues the assets required for the block directory within the block editor.

wp_enqueue_editor_format_library_assets()

Enqueues the assets required for the format library within the block editor.

wp_sanitize_script_attributes()

Sanitizes an attributes array into an attributes string to be placed inside a `<script>` tag.

$attributes
wp_get_script_tag()

Formats `<script>` loader tags.

$attributes
wp_print_script_tag()

Prints formatted `<script>` loader tag.

$attributes
wp_get_inline_script_tag()

Constructs an inline script tag.

$data $attributes
wp_print_inline_script_tag()

Prints an inline script tag.

$data $attributes
wp_maybe_inline_styles()

Allows small styles to be inlined.

_wp_normalize_relative_css_links()

Makes URLs relative to the WordPress installation.

$css $stylesheet_url
wp_enqueue_global_styles_css_custom_properties()

Function that enqueues the CSS Custom Properties coming from theme.json.

wp_enqueue_block_support_styles()

Hooks inline styles in the proper place, depending on the active theme.

$style $priority
wp_enqueue_stored_styles()

Fetches, processes and compiles stored core styles, then combines and renders them to the page.

$options
wp_enqueue_block_style()

Enqueues a stylesheet for a specific block.

$block_name $args
wp_enqueue_classic_theme_styles()

Loads classic theme styles on classic themes in the frontend.

wp_remove_surrounding_empty_script_tags()

Removes leading and trailing _empty_ script tags.

$contents
wp_interactivity()

Retrieves the main WP_Interactivity_API instance.

wp_interactivity_process_directives()

Processes the interactivity directives contained within the HTML content

$html
wp_interactivity_state()

Gets and/or sets the initial state of an Interactivity API store for a

$store_namespace $state
wp_interactivity_config()

Gets and/or sets the configuration of the Interactivity API for a given

$store_namespace $config
wp_interactivity_data_wp_context()

Generates a `data-wp-context` directive attribute by encoding a context

$context $store_namespace