![]() WP_Customize_Widgets::_construct() wp-includes/class-wp-customize-widgets.php WP_Customize_Widgets::customize_preview_init() wp-includes/class-wp-customize-widgets.php WP_Customize_Header_Image_Control::prepare_control() wp-includes/customize/class-wp-customize-header-image-control.php WP_Scripts::_construct() wp-includes/class-wp-scripts.php Removes rewrite rules and then recreate rewrite rules. WP_Rewrite::flush_rules() wp-includes/class-wp-rewrite.php WP_Rewrite::wp_rewrite_rules() wp-includes/class-wp-rewrite.php Outputs and enqueues default scripts and styles for playlists. Wp_playlist_scripts() wp-includes/media.php WP_Customize_Setting::preview() wp-includes/class-wp-customize-setting.phpĪdd filters to supply the setting’s value when accessed.Įnqueues all scripts, styles, settings, and templates necessary to use all media JS APIs. Register_deactivation_hook() wp-includes/plugin.php Register_activation_hook() wp-includes/plugin.php WP_Admin_Bar::initialize() wp-includes/class-wp-admin-bar.php WP_Admin_Bar::add_menus() wp-includes/class-wp-admin-bar.php WP_Embed::_construct() wp-includes/class-wp-embed.php Sets up a new Recent Comments widget instance. WP_Widget_Recent_Comments::_construct() wp-includes/widgets/class-wp-widget-recent-comments.php Wp_maybe_load_widgets() wp-includes/functions.phpĭetermines if Widgets library should be loaded. Loads the auth check for monitoring whether the user is still logged in. ![]() ![]() Wp_auth_check_load() wp-includes/functions.php Registers the internal custom header and background routines.Īdd_thickbox() wp-includes/general-template.phpĮnqueues the default ThickBox js and css. _custom_header_background_just_in_time() wp-includes/theme.php For example, if you are hooking into ‘save_post’, you would find it in post.php:ĭo_action( 'save_post', $post_ID, $post, $update ) Īdd_action( 'save_post', 'wpdocs_my_save_post', 10, 3 ) Īnd your function would be: function wpdocs_my_save_post( $post_ID, $post, $update ) action. To find out the number and name of arguments for an action, simply search the code base for the matching do_action() call. Top ↑ Usage add_action( $hook, $function_to_add, $priority, $accepted_args ) The number of arguments the function accepts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |