pmpro_support_url

The Paid Memberships Pro pmpro support url hook.

Description

apply_filters( 'pmpro_support_url', (string) $http_paidmembershipspro_com_support ); 

Parameters (1)

0. $http_paidmembershipspro_com_support (string) => 'http://paidmembershipspro.com/support/'
The http paidmembershipspro com support.

Usage

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

Defined (1)

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

/includes/adminpages.php  
  1. '<a href="' . esc_url( apply_filters( 'pmpro_support_url', 'http://paidmembershipspro.com/support/' ) ) . '" title="' . esc_attr( __( 'Visit Customer Support Forum', 'paid-memberships-pro' ) ) . '">' . __( 'Support', 'paid-memberships-pro' ) . '</a>',