pmpro_docs_url

The Paid Memberships Pro pmpro docs url hook.

Description

apply_filters( 'pmpro_docs_url', (string) $http_paidmembershipspro_com_documentation ); 

Parameters (1)

0. $http_paidmembershipspro_com_documentation (string) => 'http://paidmembershipspro.com/documentation/'
The http paidmembershipspro com documentation.

Usage

To run the hook, copy the example below.
  1. $http_paidmembershipspro_com_documentation = apply_filters( 'pmpro_docs_url', $http_paidmembershipspro_com_documentation ); 
  2.  
  3. if ( !empty( $http_paidmembershipspro_com_documentation ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the pmpro_docs_url callback 
  2. function filter_pmpro_docs_url( $http_paidmembershipspro_com_documentation ) { 
  3. // make filter magic happen here... 
  4. return $http_paidmembershipspro_com_documentation
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pmpro_docs_url', 'filter_pmpro_docs_url', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pmpro_docs_url', 'filter_pmpro_docs_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_docs_url', 'http://paidmembershipspro.com/documentation/' ) ) . '" title="' . esc_attr( __( 'View PMPro Documentation', 'paid-memberships-pro' ) ) . '">' . __( 'Docs', 'paid-memberships-pro' ) . '</a>',