aioseop_canonical_url
The All In One SEO Pack aioseop canonical url hook.
Description
Parameters (1)
- 0. $url (unknown)
- The url.
Usage
- To run the hook, copy the example below.
- $url = apply_filters( 'aioseop_canonical_url', $url );
- if ( !empty( $url ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the aioseop_canonical_url callback
- function filter_aioseop_canonical_url( $url ) {
- // make filter magic happen here...
- return $url;
- };
- // add the filter
- add_filter( 'aioseop_canonical_url', 'filter_aioseop_canonical_url', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'aioseop_canonical_url', 'filter_aioseop_canonical_url', 10, 1 );
Defined (3)
The filter is defined in the following location(s).
- /modules/aioseop_opengraph.php
- $url = apply_filters( 'aioseop_canonical_url', $url );
- /aioseop_class.php
- $url = apply_filters( 'aioseop_canonical_url', $url );
- $url = apply_filters( 'aioseop_canonical_url', $url );