nxs_adjust_ex_url

The NextScripts: Social Networks Auto-Poster nxs adjust ex url hook.

Description

apply_filters( 'nxs_adjust_ex_url', (unknown) $urltogo, (unknown) $post_post_content ); 

Parameters (2)

0. $urltogo (unknown)
The urltogo.
1. $post_post_content (unknown)
The post post content.

Usage

To run the hook, copy the example below.
  1. $urltogo = apply_filters( 'nxs_adjust_ex_url', $urltogo, $post_post_content ); 
  2.  
  3. if ( !empty( $urltogo ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the nxs_adjust_ex_url callback 
  2. function filter_nxs_adjust_ex_url( $urltogo, $post_post_content ) { 
  3. // make filter magic happen here... 
  4. return $urltogo
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'nxs_adjust_ex_url', 'filter_nxs_adjust_ex_url', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'nxs_adjust_ex_url', 'filter_nxs_adjust_ex_url', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/inc-cl/pn.php  
  1. $options = nxs_getURL($options, $postID, $addParams); $urlToGo = $options['urlToUse']; if (is_object($post)) $urlToGo = apply_filters( 'nxs_adjust_ex_url', $urlToGo, $post->post_content);