the_post
Fires once the post data has been setup.
Description
Parameters (1)
- 0. $array (callback) =>
array( $this, 'show_menu_titles_in_menu_item_list' )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'the_post', $array );
- The following example is for adding a hook callback.
- // define the the_post callback
- function action_the_post( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'the_post', 'action_the_post', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'the_post', 'action_the_post', 10, 1 );
Defined (4)
The action is defined in the following location(s).
- /modules/custom-post-types/nova.php
- add_action( 'the_post', array( $this, 'show_menu_titles_in_menu_item_list' ) );
- add_action( 'the_post', array( $this, 'menu_item_loop_each_post' ) );
- remove_action( 'the_post', array( $this, 'menu_item_loop_each_post' ) );
- /modules/infinite-scroll/infinity.php
- add_action( 'the_post', array( $this, 'preserve_more_tag' ) );