loop_start
Fires once the loop is started.
Description
Attached to the template_include *filter*, which fires only during a real blog view (not in admin, feeds, etc.)
Returns (string)
Template File. VERY Important.
Parameters (1)
- 0. $array (callback) =>
array( $this, 'start_menu_item_loop' )
- Template File
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'loop_start', $array );
- The following example is for adding a hook callback.
- // define the loop_start callback
- function action_loop_start( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'loop_start', 'action_loop_start', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'loop_start', 'action_loop_start', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /modules/custom-post-types/nova.php
- add_action( 'loop_start', array( $this, 'start_menu_item_loop' ) );
- /modules/contact-form/grunion-contact-form.php
- add_action( 'loop_start', array( 'Grunion_Contact_Form', '_style_on' ) );