before
The SKT Photo World before hook.
Description
do_action( 'before' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'before' );
- The following example is for adding a hook callback.
- // define the before callback
- function action_before( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'before', 'action_before', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'before', 'action_before', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /header.php
- <?php do_action( 'before' ); ?>