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

activate_plugins

(string|array) $plugins
(string) $redirect = ''
(bool) $network_wide = false
(bool) $silent = false
(boolean|WP_Error) True when finished or WP_Error if there were errors during a plugin activation.

Activate multiple plugins.

2.6 wp-admin / includes / plugin.php

add_action

(string) $tag
(callback) $function_to_add
(int) $priority = 10
(int) $accepted_args = 1
(boolean) Will always return true.

Hooks a function on to a specific action.

1.2 wp-includes / plugin.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_plugins_page

(string) $page_title
(string) $menu_title
(string) $capability
(string) $menu_slug
(callback) $function = ''
(string|boolean) The resulting page's hook_suffix, or false if the user does not have the capability required.

Add sub menu page to the plugins main menu.

wp-admin / includes / plugin.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_shortcode

(string) $tag
(callable) $func
(void)

Add hook for shortcode tag.

2.5 wp-includes / shortcodes.php

adjacent_posts_rel_link_wp_head

(void)

Display relational links for the posts adjacent to the current post for single post pages.

3.0 wp-includes / link-template.php

allowed_tags

(string) HTML allowed tags entity encoded.

Display all of the allowed tags in HTML format with attributes.

1.0.1 wp-includes / general-template.php

codepress_footer_js

(void)

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

2.8 wp-admin / includes / deprecated.php