optionsframework_admin_bar
The SKT Black optionsframework admin bar hook.
Description
Parameters (1)
- 0. $args (unknown)
- The args.
Usage
- To run the hook, copy the example below.
- $args = apply_filters( 'optionsframework_admin_bar', $args );
- if ( !empty( $args ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the optionsframework_admin_bar callback
- function filter_optionsframework_admin_bar( $args ) {
- // make filter magic happen here...
- return $args;
- };
- // add the filter
- add_filter( 'optionsframework_admin_bar', 'filter_optionsframework_admin_bar', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'optionsframework_admin_bar', 'filter_optionsframework_admin_bar', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /inc/includes/class-options-framework-admin.php
- $wp_admin_bar->add_menu( apply_filters( 'optionsframework_admin_bar', $args ) );