wpcf7_plugin_action_links

The Contact Form 7 wpcf7 plugin action links function.

Description

wpcf7_plugin_action_links( $links, $file ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'wpcf7_plugin_action_links' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/admin/admin.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 = wpcf7_plugin_action_links($links, $file); 
  12.  

Defined (1)

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

/admin/admin.php  
  1. function wpcf7_plugin_action_links( $links, $file ) { 
  2. if ( $file != WPCF7_PLUGIN_BASENAME ) { 
  3. return $links; 
  4.  
  5. $settings_link = '<a href="' . menu_page_url( wpcf7, false ) . '">' 
  6. . esc_html( __( 'Settings', 'contact-form-7' ) ) . '</a>'; 
  7.  
  8. array_unshift( $links, $settings_link ); 
  9.  
  10. return $links;