nxsog_url
The NextScripts: Social Networks Auto-Poster nxsog url hook.
Description
Parameters (1)
- 0. $ogurl (unknown)
- The ogurl.
Usage
- To run the hook, copy the example below.
- $ogurl = apply_filters( 'nxsog_url', $ogurl );
- if ( !empty( $ogurl ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the nxsog_url callback
- function filter_nxsog_url( $ogurl ) {
- // make filter magic happen here...
- return $ogurl;
- };
- // add the filter
- add_filter( 'nxsog_url', 'filter_nxsog_url', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'nxsog_url', 'filter_nxsog_url', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /NextScripts_SNAP.php
- $ogUrl = '<meta property="og:url" content="'.esc_url( apply_filters( 'nxsog_url', $ogUrl ) ) . '" />' . "\r\n";