add_action

The WordPress Core add action function.

Description

add_action(); 

Usage

  1. if ( !function_exists( 'add_action' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/noop.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = add_action(); 
  7.  

Defined (2)

The function is defined in the following location(s).

/wp-admin/includes/noop.php  
  1. function add_action() {} 
/wp-includes/plugin.php  
  1. function add_action($tag, $function_to_add, $priority = 10, $accepted_args = 1) { 
  2. return add_filter($tag, $function_to_add, $priority, $accepted_args);