bbp_admin_notes_languages
The bbPress - Admin Notes bbp admin notes languages hook.
Description
Parameters (1)
- 0. $lang_dir (unknown)
- The lang dir.
Usage
- To run the hook, copy the example below.
- $lang_dir = apply_filters( 'bbp_admin_notes_languages', $lang_dir );
- if ( !empty( $lang_dir ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bbp_admin_notes_languages callback
- function filter_bbp_admin_notes_languages( $lang_dir ) {
- // make filter magic happen here...
- return $lang_dir;
- };
- // add the filter
- add_filter( 'bbp_admin_notes_languages', 'filter_bbp_admin_notes_languages', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bbp_admin_notes_languages', 'filter_bbp_admin_notes_languages', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bbp-admin-notes.php
- $lang_dir = apply_filters( 'bbp_admin_notes_languages', $lang_dir );