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 1401 to 1450 of 4125 functions (Page 29 of 83)
get_comments_pagination_arrow()

Helper function that returns the proper pagination arrow HTML for

$block $pagination_type
_wp_filter_post_meta_footnotes()

Strips all HTML from the content of footnotes, and sanitizes the ID.

$footnotes
_wp_footnotes_kses_init_filters()

Adds the filters for footnotes meta field.

_wp_footnotes_remove_filters()

Removes the filters for footnotes meta field.

_wp_footnotes_kses_init()

Registers the filter of footnotes meta field if the user does not have `unfiltered_html` capability.

_wp_footnotes_force_filtered_html_on_import_filter()

Initializes the filters for footnotes meta field when imported data should be filtered.

$arg
wp_get_global_settings()

Gets the settings resulting of merging core, theme, and user data.

$path $context
wp_get_global_styles()

Gets the styles resulting of merging core, theme, and user data.

$path $context
wp_get_global_stylesheet()

Returns the stylesheet resulting of merging core, theme, and user data.

$types
wp_add_global_styles_for_blocks()

Adds global style rules to the inline style for each block.

wp_get_block_name_from_theme_json_path()

Gets the block name from a given theme.json path.

$path
wp_theme_has_theme_json()

Checks whether a theme or its parent has a theme.json file.

wp_clean_theme_json_cache()

Cleans the caches under the theme_json group.

wp_get_theme_directory_pattern_slugs()

Returns the current theme's wanted patterns (slugs) to be

wp_get_theme_data_custom_templates()

Returns the metadata for the custom templates defined by the theme via theme.json.

wp_get_theme_data_template_parts()

Returns the metadata for the template parts defined by the theme.

wp_get_block_css_selector()

Determines the CSS selector for the block type and property provided,

$block_type $target $fallback
register_widget()

Registers a widget.

$widget
unregister_widget()

Unregisters a widget.

$widget
register_sidebars()

Creates multiple sidebars.

$number $args
register_sidebar()

Builds the definition for a single sidebar and returns the ID.

$args
unregister_sidebar()

Removes a sidebar from the list.

$sidebar_id
is_registered_sidebar()

Checks if a sidebar is registered.

$sidebar_id
wp_register_sidebar_widget()

Registers an instance of a widget.

$id $name $output_callback +2 more
wp_widget_description()

Retrieves description for widget.

$id
wp_sidebar_description()

Retrieves description for a sidebar.

$id
wp_unregister_sidebar_widget()

Remove widget from sidebar.

$id
wp_register_widget_control()

Registers widget control callback for customizing options.

$id $name $control_callback +2 more
_register_widget_update_callback()

Registers the update callback for a widget.

$id_base $update_callback $options +1 more
_register_widget_form_callback()

Registers the form callback for a widget.

$id $name $form_callback +2 more
wp_unregister_widget_control()

Removes control callback for widget.

$id
dynamic_sidebar()

Displays dynamic sidebar.

$index
is_active_widget()

Determines whether a given widget is displayed on the front end.

$callback $widget_id $id_base +1 more
is_dynamic_sidebar()

Determines whether the dynamic sidebar is enabled and used by the theme.

is_active_sidebar()

Determines whether a sidebar contains widgets.

$index
wp_get_sidebars_widgets()

Retrieves the full list of sidebars and their widget instance IDs.

$deprecated
wp_get_sidebar()

Retrieves the registered sidebar with the given ID.

$id
wp_set_sidebars_widgets()

Sets the sidebar widget option to update sidebars.

$sidebars_widgets
wp_get_widget_defaults()

Retrieves default registered sidebars list.

wp_convert_widget_settings()

Converts the widget settings from single to multi-widget format.

$base_name $option_name $settings
the_widget()

Outputs an arbitrary widget as a template tag.

$widget $instance $args
_get_widget_id_base()

Retrieves the widget ID base value.

$id
_wp_sidebars_changed()

Handles sidebars config after theme change.

retrieve_widgets()

Validates and remaps any "orphaned" widgets to wp_inactive_widgets sidebar,

$theme_changed
wp_map_sidebars_widgets()

Compares a list of sidebars with their widgets against an allowed list.

$existing_sidebars_widgets
_wp_remove_unregistered_widgets()

Compares a list of sidebars with their widgets against an allowed list.

$sidebars_widgets $allowed_widget_ids
wp_widget_rss_output()

Displays the RSS entries in a list.

$rss $args
wp_widget_rss_form()

Displays RSS widget options form.

$args $inputs
wp_widget_rss_process()

Processes RSS feed widget data and optionally retrieve feed items.

$widget_rss $check_feed
wp_widgets_init()

Registers all of the default WordPress widgets on startup.