wp-admin/includes/admin-filters.php


Lines:

1 to 100 of 171
<?php

/**
 * Administration API: Default admin hooks
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.3.0
 */

// Bookmark hooks.
add_action( 'admin_page_access_denied', 'wp_link_manager_disabled_message' )  <;

// Dashboard hooks.
add_action( 'activity_box_end', 'wp_dashboard_quota' )  <;
add_action( 'welcome_panel', 'wp_welcome_panel' )  <;

// Media hooks.
add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' )  <;
add_filter( 'plupload_init', 'wp_show_heic_upload_error' );

add_action( 'media_upload_image', 'wp_media_upload_handler' )  <;
add_action( 'media_upload_audio', 'wp_media_upload_handler' )  <;
add_action( 'media_upload_video', 'wp_media_upload_handler' )  <;
add_action( 'media_upload_file', 'wp_media_upload_handler' )  <;

add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' )  <;

add_action( 'post-html-upload-ui', 'media_upload_html_bypass' )  <;

add_filter( 'async_upload_image', 'get_media_item',  < 10, 2 );
add_filter( 'async_upload_audio', 'get_media_item',  < 10, 2 );
add_filter( 'async_upload_video', 'get_media_item',  < 10, 2 );
add_filter( 'async_upload_file', 'get_media_item',  < 10, 2 );

add_filter( 'media_upload_gallery', 'media_upload_gallery' )  <;
add_filter( 'media_upload_library', 'media_upload_library' )  <;

add_filter( 'media_upload_tabs', 'update_gallery_tab' )  <;

// Admin color schemes.
add_action( 'admin_init', 'register_admin_color_schemes',  < 1 );
add_action( 'admin_head', 'wp_color_scheme_settings' )  <;
add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' )  <;

// Misc hooks.
add_action( 'admin_init', 'wp_admin_headers' )  <;
add_action( 'login_init', 'wp_admin_headers' )  <;
add_action( 'admin_init', 'send_frame_options_header',  < 10, 0 );
add_action( 'admin_head', 'wp_admin_canonical_url' )  <;
add_action( 'admin_head', 'wp_site_icon' )  <;
add_action( 'admin_head', 'wp_admin_viewport_meta' );
add_action( 'customize_controls_head', 'wp_admin_viewport_meta' );
add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' )  <;

// Prerendering.
if ( ! is_customize_preview() ) {
  add_filter( 'admin_print_styles', 'wp_resource_hints',  < 1 );
}

add_action( 'admin_print_scripts', 'print_emoji_detection_script' )  <;
add_action( 'admin_print_scripts', 'print_head_scripts',  < 20 );
add_action( 'admin_print_footer_scripts', '_wp_footer_scripts' )  <;
add_action( 'admin_print_styles', 'print_emoji_styles' )  <;
add_action( 'admin_print_styles', 'print_admin_styles',  < 20 );

add_action( 'admin_print_scripts-index.php', 'wp_localize_community_events' )  <;
add_action( 'admin_print_scripts-post.php', 'wp_page_reload_on_back_button_js' )  <;
add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' )  <;

add_action( 'update_option_home', 'update_home_siteurl',  < 10, 2 );
add_action( 'update_option_siteurl', 'update_home_siteurl',  < 10, 2 );
add_action( 'update_option_page_on_front', 'update_home_siteurl',  < 10, 2 );
add_action( 'update_option_admin_email', 'wp_site_admin_email_change_notification',  < 10, 3 );

add_action( 'add_option_new_admin_email', 'update_option_new_admin_email',  < 10, 2 );
add_action( 'update_option_new_admin_email', 'update_option_new_admin_email',  < 10, 2 );

add_filter( 'heartbeat_received', 'wp_check_locked_posts',  < 10, 3 );
add_filter( 'heartbeat_received', 'wp_refresh_post_lock',  < 10, 3 );
add_filter( 'heartbeat_received', 'heartbeat_autosave',  < 500, 2 );

add_filter( 'wp_refresh_nonces', 'wp_refresh_post_nonces',  < 10, 3 );
add_filter( 'wp_refresh_nonces', 'wp_refresh_heartbeat_nonces' )  <;

add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' )  <;

add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );

// Nav Menu hooks.
add_action( 'admin_head-nav-menus.php', '_wp_delete_orphaned_draft_menu_items' )  <;

// Plugin hooks.
add_filter( 'allowed_options', 'option_update_filter' )  <;

// Plugin Install hooks.
add_action( 'install_plugins_featured', 'install_dashboard' )  <;
add_action( 'install_plugins_upload', 'install_plugins_upload' )  <;

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,