wpga_menu_on_top
Get the menu position of the Analytics item.
Description
Returns (string)
Parameters (1)
- 0. $true (bool)
- The true.
Usage
- To run the hook, copy the example below.
- $true = apply_filters( 'wpga_menu_on_top', $true );
- if ( !empty( $true ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wpga_menu_on_top callback
- function filter_wpga_menu_on_top( $true ) {
- // make filter magic happen here...
- return $true;
- };
- // add the filter
- add_filter( 'wpga_menu_on_top', 'filter_wpga_menu_on_top', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wpga_menu_on_top', 'filter_wpga_menu_on_top', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /admin/class-admin-menu.php
- $on_top = apply_filters( 'wpga_menu_on_top', true );