aiosp_add_action_links

The All In One SEO Pack aiosp add action links function.

Description

(array) aiosp_add_action_links( $actions, $plugin_file ); 

Returns (array)

Parameters (2)

0. $actions
The actions.
1. $plugin_file
The plugin file.

Usage

  1. if ( !function_exists( 'aiosp_add_action_links' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/all_in_one_seo_pack.php'; 
  3.  
  4. // The actions. 
  5. $actions = null; 
  6.  
  7. // The plugin file. 
  8. $plugin_file = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = aiosp_add_action_links($actions, $plugin_file); 
  12.  

Defined (1)

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

/all_in_one_seo_pack.php  
  1. function aiosp_add_action_links( $actions, $plugin_file ) { 
  2.  
  3. $aioseop_plugin_dirname = AIOSEOP_PLUGIN_DIRNAME
  4. $action_links = array(); 
  5. $action_links = array( 
  6. 'settings' => array( 
  7. 'label' => __( 'SEO Settings', 'all-in-one-seo-pack' ),  
  8. 'url' => get_admin_url( null, "admin.php?page=$aioseop_plugin_dirname/aioseop_class.php" ),  
  9. ),  
  10.  
  11. 'forum' => array( 
  12. 'label' => __( 'Support Forum', 'all-in-one-seo-pack' ),  
  13. 'url' => 'http://semperplugins.com/support/',  
  14. ),  
  15.  
  16. 'docs' => array( 
  17. 'label' => __( 'Documentation', 'all-in-one-seo-pack' ),  
  18. 'url' => 'http://semperplugins.com/documentation/',  
  19. ),  
  20.  
  21. ); 
  22.  
  23. unset( $actions['edit'] ); 
  24.  
  25. if ( ! AIOSEOPPRO ) { 
  26. $action_links['proupgrade'] = 
  27. array( 
  28. 'label' => __( 'Upgrade to Pro', 'all-in-one-seo-pack' ),  
  29. 'url' => 'http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/?loc=plugins',  
  30.  
  31. ); 
  32.  
  33. return aiosp_action_links( $actions, $plugin_file, $action_links, 'before' );