pmpro_plugin_row_meta

Function to add links to the plugin row meta.

Description

pmpro_plugin_row_meta( $links, $file ); 

Parameters (2)

0. $links
The links.
1. $file
The file.

Usage

  1. if ( !function_exists( 'pmpro_plugin_row_meta' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/adminpages.php'; 
  3.  
  4. // The links. 
  5. $links = null; 
  6.  
  7. // The file. 
  8. $file = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = pmpro_plugin_row_meta($links, $file); 
  12.  

Defined (1)

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

/includes/adminpages.php  
  1. function pmpro_plugin_row_meta($links, $file) { 
  2. if(strpos($file, 'paid-memberships-pro.php') !== false) 
  3. $new_links = array( 
  4. '<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>',  
  5. '<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>',  
  6. ); 
  7. $links = array_merge($links, $new_links); 
  8. return $links;