admin_print_styles

admin_print_styles

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('admin_print_styles') is found 4 times:

  • /wp-admin/admin-header.php line 132
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    * Fires when styles are printed for all admin pages.
     *
     * @since 2.6.0
     */
    do_action( 'admin_print_styles' );
     
    /**
     * Fires when scripts are printed for a specific admin page based on $hook_suffix.
     *
     * @since 2.1.0
     */
  • /wp-admin/includes/media.php line 570
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    */
    do_action( 'admin_print_styles-media-upload-popup' );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     
    /** This action is documented in wp-admin/admin-header.php */
    do_action( 'admin_print_styles' );
     
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
  • /wp-admin/includes/template.php line 2163
    2159
    2160
    2161
    2162
    2163
    2164
    2165
    2166
    2167
    2168
    2169
    /** This action is documented in wp-admin/admin-header.php */
    do_action( "admin_print_styles-{$hook_suffix}" );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     
    /** This action is documented in wp-admin/admin-header.php */
    do_action( 'admin_print_styles' );
     
    /** This action is documented in wp-admin/admin-header.php */
    do_action( "admin_print_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     
    /** This action is documented in wp-admin/admin-header.php */
    do_action( 'admin_print_scripts' );
  • /wp-includes/class-wp-customize-widgets.php line 673
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
        /** This action is documented in wp-admin/admin-header.php */
        do_action( 'admin_print_styles-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     
        /** This action is documented in wp-admin/admin-header.php */
        do_action( 'admin_print_styles' );
    }
     
    /**
     * Calls admin_print_scripts-widgets.php and admin_print_scripts hooks to
     * allow custom scripts from plugins.
     *

See this hook used in plugins: