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 3351 to 3400 of 4125 functions (Page 68 of 83)
sodium_crypto_core_ristretto255_scalar_invert()
$p
sodium_crypto_core_ristretto255_scalar_mul()
$x $y
sodium_crypto_core_ristretto255_scalar_negate()
$s
sodium_crypto_core_ristretto255_scalar_random()
sodium_crypto_core_ristretto255_scalar_reduce()
$s
sodium_crypto_core_ristretto255_scalar_sub()
$x $y
sodium_crypto_core_ristretto255_sub()
$p $q
sodium_crypto_scalarmult_ristretto255()
$n $p
sodium_crypto_scalarmult_ristretto255_base()
$n
wp_set_unique_slug_on_create_template_part()

Sets a custom slug when creating auto-draft template parts.

$post_id
wp_filter_wp_template_unique_post_slug()

Generates a unique slug for templates.

$override_slug $slug $post_id +2 more
wp_enqueue_block_template_skip_link()

Enqueues the skip-link script & styles.

wp_enable_block_templates()

Enables the block templates (editor mode) for themes with theme.json by default.

get_block_theme_folders()

For backward compatibility reasons,

$theme_stylesheet
get_allowed_block_template_part_areas()

Returns a filtered list of allowed area values for template parts.

get_default_block_template_types()

Returns a filtered list of default template types, containing their

_filter_block_template_part_area()

Checks whether the input 'area' is a supported value.

$type
_get_block_templates_paths()

Finds all nested template part file paths in a theme's directory.

$base_directory
_get_block_template_file()

Retrieves the template file from the theme for a given slug.

$template_type $slug
_get_block_templates_files()

Retrieves the template files from the theme.

$template_type $query
_add_block_template_info()

Attempts to add custom template information to the template item.

$template_item
_add_block_template_part_area_info()

Attempts to add the template part's area information to the input template.

$template_info
_flatten_blocks()

Returns an array containing the references of

$blocks
_inject_theme_attribute_in_template_part_block()

Injects the active theme's stylesheet as a `theme` attribute

$block
_remove_theme_attribute_from_template_part_block()

Removes the `theme` attribute from a given template part block.

$block
_build_block_template_result_from_file()

Builds a unified template object based on a theme file.

$template_file $template_type
_wp_build_title_and_description_for_single_post_type_block_template()

Builds the title and description of a post-specific template based on the underlying referenced post.

$post_type $slug $template
_wp_build_title_and_description_for_taxonomy_block_template()

Builds the title and description of a taxonomy-specific template based on the underlying entity referenced.

$taxonomy $slug $template
_build_block_template_object_from_post_object()

Builds a block template object from a post object.

$post $terms $meta
_build_block_template_result_from_post()

Builds a unified template object based a post Object.

$post
get_block_templates()

Retrieves a list of unified template objects based on a query.

$query $template_type
get_block_template()

Retrieves a single unified template object using its id.

$id $template_type
get_block_file_template()

Retrieves a unified template object based on a theme file.

$id $template_type
block_template_part()

Prints a block template part.

$part
block_header_area()

Prints the header block template part.

block_footer_area()

Prints the footer block template part.

wp_is_theme_directory_ignored()

Determines whether a theme directory should be ignored during export.

$path
wp_generate_block_templates_export_file()

Creates an export of the current templates and

get_template_hierarchy()

Gets the template hierarchy for the given template slug to be created.

$slug $is_custom $template_prefix
inject_ignored_hooked_blocks_metadata_attributes()

Inject ignoredHookedBlocks metadata attributes into a template or template part.

$changes $deprecated
wp_set_current_user()

Changes the current user by ID or name.

$id $name
wp_get_current_user()

Retrieves the current user object.

get_userdata()

Retrieves user info by user ID.

$user_id
get_user_by()

Retrieves user info by a given field.

$field $value
cache_users()

Retrieves info for user lists to prevent multiple queries by get_userdata().

$user_ids
wp_mail()

Sends an email, similar to PHP's mail function.

$to $subject $message +2 more
wp_authenticate()

Authenticates a user, confirming the login credentials are valid.

$username $password
wp_logout()

Logs the current user out.

wp_validate_auth_cookie()

Validates authentication cookie.

$cookie $scheme
wp_generate_auth_cookie()

Generates authentication cookie contents.

$user_id $expiration $scheme +1 more