admin_print_scripts

admin_print_scripts

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

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('admin_print_scripts') is found 4 times:

  • /wp-admin/admin-header.php line 146
     * Fires when scripts are printed for all admin pages.
     *
     * @since 2.1.0
     */
    do_action( 'admin_print_scripts' );
    
    /**
     * Fires in head section for a specific admin page.
     *
     * The dynamic portion of the hook name, `$hook_suffix`, refers to the hook suffix
     * for the admin page.
    
  • /wp-admin/includes/media.php line 580
    	 */
    	do_action( 'admin_print_scripts-media-upload-popup' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    
    	/** This action is documented in wp-admin/admin-header.php */
    	do_action( 'admin_print_scripts' );
    
    	/**
    	 * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
    	 * media upload popup are printed.
    	 *
    	 * @since 2.9.0
    
  • /wp-admin/includes/template.php line 2169
    	/** 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' );
    
    	/** This action is documented in wp-admin/admin-header.php */
    	do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    
    	/** This action is documented in wp-admin/admin-header.php */
    	do_action( 'admin_head' );
    
  • /wp-includes/class-wp-customize-widgets.php line 687
    		/** This action is documented in wp-admin/admin-header.php */
    		do_action( 'admin_print_scripts-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    
    		/** This action is documented in wp-admin/admin-header.php */
    		do_action( 'admin_print_scripts' );
    	}
    
    	/**
    	 * Enqueues scripts and styles for Customizer panel and export data to JavaScript.
    	 *
    	 * @since 3.9.0
    

See this hook used in plugins:

Examples using admin_print_scripts