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 751 to 800 of 4125 functions (Page 16 of 83)
esc_attr()
apply_filters()
get_option()
is_lighttpd_before_150()
add_action()
did_action()
do_action_ref_array()
get_bloginfo()
is_admin()
site_url()
admin_url()
home_url()
includes_url()
wp_guess_url()
get_file()
$path
wp_crop_image()

Crops an image to a given size.

$src $src_x $src_y +6 more
wp_get_missing_image_subsizes()

Compare the existing image sub-sizes (as saved in the attachment meta)

$attachment_id
wp_update_image_subsizes()

If any of the currently registered image sub-sizes are missing,

$attachment_id
_wp_image_meta_replace_original()

Updates the attached file and image meta data when the original image was edited.

$saved_data $original_file $image_meta +1 more
wp_create_image_subsizes()

Creates image sub-sizes, adds the new data to the image meta `sizes` array, and updates the image metadata.

$file $attachment_id
_wp_make_subsizes()

Low-level function to create image sub-sizes.

$new_sizes $file $image_meta +1 more
wp_copy_parent_attachment_properties()

Copy parent attachment properties to newly cropped image.

$cropped $parent_attachment_id $context
wp_generate_attachment_metadata()

Generates attachment meta data and create image sub-sizes for images.

$attachment_id $file
wp_exif_frac2dec()

Converts a fraction string to a decimal.

$str
wp_exif_date2ts()

Converts the exif date format to a unix timestamp.

$str
wp_read_image_metadata()

Gets extended image metadata, exif or iptc as available.

$file
file_is_valid_image()

Validates that file is an image.

$path
file_is_displayable_image()

Validates that file is suitable for displaying within a web page.

$path
load_image_to_edit()

Loads an image resource for editing.

$attachment_id $mime_type $size
_load_image_to_edit_path()

Retrieves the path or URL of an attachment's attached file.

$attachment_id $size
_copy_image_file()

Copies an existing image file.

$attachment_id
tinymce_include()
documentation_link()

Unused Admin function.

wp_shrink_dimensions()

Calculates the new dimensions for a downsampled image.

$width $height $wmax +1 more
get_udims()

Calculated the new dimensions for a downsampled image.

$width $height
dropdown_categories()

Legacy function used to generate the categories checklist control.

$default_category $category_parent $popular_ids
dropdown_link_categories()

Legacy function used to generate a link categories checklist control.

$default_link_category
get_real_file_to_edit()

Get the real filesystem path to a file to edit within the admin.

$file
wp_dropdown_cats()

Legacy function used for generating a categories drop-down control.

$current_cat $current_parent $category_parent +2 more
add_option_update_handler()

Register a setting and its sanitization callback

$option_group $option_name $sanitize_callback
remove_option_update_handler()

Unregister a setting

$option_group $option_name $sanitize_callback
codepress_get_lang()

Determines the language to use for CodePress syntax highlighting.

$filename
codepress_footer_js()

Adds JavaScript required to make CodePress work on the theme/plugin file editors.

use_codepress()

Determine whether to use CodePress.

get_author_user_ids()

Get all user IDs.

get_editable_authors()

Gets author users who can edit posts.

$user_id
get_editable_user_ids()

Gets the IDs of any users who can edit posts.

$user_id $exclude_zeros $post_type
get_nonauthor_user_ids()

Gets all users who are not authors.

get_others_unpublished_posts()

Retrieves editable posts from other users.

$user_id $type
get_others_drafts()

Retrieve drafts from other users.

$user_id