Function Arguments Return Description Version Path

activate_plugin

(string) $plugin
(string) $redirect = ''
(bool) $network_wide = false
(bool) $silent = false
(WP_Error|null) WP_Error on invalid file or null on success.

Attempts activation of plugin in a “sandbox” and redirects on success.

2.5 wp-admin / includes / plugin.php

add_custom_background

(callback) $wp_head_callback = ''
(callback) $admin_head_callback = ''
(callback) $admin_preview_callback = ''
(void)

Add callbacks for background image display.

3.0 wp-includes / deprecated.php

add_custom_image_header

(callback) $wp_head_callback
(callback) $admin_head_callback
(callback) $admin_preview_callback = ''
(void)

Add callbacks for image header display.

2.1 wp-includes / deprecated.php

add_editor_style

(mixed) $stylesheet = 'editor-style.css'
(void)

Add callback for custom TinyMCE editor stylesheets.

3.0 wp-includes / theme.php

add_filter

(string) $tag
(callback) $function_to_add
(int) $priority = 10
(int) $accepted_args = 1
(boolean) true

Hook a function or method to a specific filter action.

0.71 wp-includes / plugin.php

add_option_update_handler

(string) $option_group
(string) $option_name
(unknown_type) $sanitize_callback = ''
(unknown)

Register a setting and its sanitization callback

2.7 wp-admin / includes / deprecated.php

add_post_meta

(int) $post_id
(string) $meta_key
(mixed) $meta_value
(bool) $unique = false
(int|boolean) Meta ID on success, false on failure.

Add meta data field to a post.

1.5 wp-includes / post.php

add_post_type_support

(string) $post_type
(string|array) $feature
(void)

Register support of certain features for a post type.

3.0 wp-includes / post.php

add_rewrite_endpoint

(string) $name
(int) $places
(string) $query_var = null
(void)

Add an endpoint, like /trackback/.

2.1 wp-includes / rewrite.php

add_rewrite_tag

(string) $tag
(string) $regex
(string) $query = ''
(void)

Add a new rewrite tag (like %postname%).

2.1 wp-includes / rewrite.php