bp_core_get_root_domain
Filters the domain for the root blog.
Description
Parameters (1)
- 0. $domain (string)
- The domain URL for the blog.
Usage
- To run the hook, copy the example below.
- $domain = apply_filters( 'bp_core_get_root_domain', $domain );
- if ( !empty( $domain ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_core_get_root_domain callback
- function filter_bp_core_get_root_domain( $domain ) {
- // make filter magic happen here...
- return $domain;
- };
- // add the filter
- add_filter( 'bp_core_get_root_domain', 'filter_bp_core_get_root_domain', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_core_get_root_domain', 'filter_bp_core_get_root_domain', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-core/bp-core-functions.php
- return apply_filters( 'bp_core_get_root_domain', $domain );