Action hook 'load-edit-tags.php'

in WP Core File wp-admin/admin.php at line 405

View Source

load-edit-tags.php

Action Hook
Description
Fires before a particular screen is loaded. The load-* hook fires in a number of contexts. This hook is for core screens. The dynamic portion of the hook name, `$pagenow`, is a global variable referring to the filename of the current screen, such as 'admin.php', 'post-new.php' etc. A complete hook for the latter would be 'load-post-new.php'. / do_action( "load-{$pagenow}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores /* The following hooks are fired to ensure backward compatibility. In all other cases, 'load-' . $pagenow should be used instead.

Hook Information

File Location wp-admin/admin.php View on GitHub
Hook Type Action
Line Number 405

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into load-edit-tags.php
add_action('load-edit-tags.php', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-admin/admin.php:405 - How this hook is used in WordPress core
<?php
 400  			do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
 401  		} elseif ( 'link_category' === $taxnow ) {
 402  			do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
 403  		}
 404  	} elseif ( 'term.php' === $pagenow ) {
 405  		do_action( 'load-edit-tags.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
 406  	}
 407  }
 408  
 409  if ( ! empty( $_REQUEST['action'] ) ) {
 410  	$action = $_REQUEST['action'];

PHP Documentation

<?php
/**
	 * Fires before a particular screen is loaded.
	 *
	 * The load-* hook fires in a number of contexts. This hook is for core screens.
	 *
	 * The dynamic portion of the hook name, `$pagenow`, is a global variable
	 * referring to the filename of the current screen, such as 'admin.php',
	 * 'post-new.php' etc. A complete hook for the latter would be
	 * 'load-post-new.php'.
	 *
	 * @since 2.1.0
	 */
	do_action( "load-{$pagenow}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/*
	 * The following hooks are fired to ensure backward compatibility.
	 * In all other cases, 'load-' . $pagenow should be used instead.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-admin/admin.php
Related Hooks

Related hooks will be displayed here in future updates.