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.1

do_action('admin_print_styles') is found 4 times:

  • /wp-admin/admin-header.php line 132
     * 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
    	 */
    	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
    	/** 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
    		/** 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: