fs_ui_action_button

The NextGEN Gallery fs ui action button function.

Description

fs_ui_action_button( (string) $slug, (string) $page, (string) $action, (string) $title, (array) $params = array(), (constant) $is_primary = true, (constant) $icon_class = false, (constant) $confirmation = false, (string) $method = 'GET' ); 

Parameters (9)

0. $slug (string)
The slug.
1. $page (string)
The page.
2. $action (string)
The action.
3. $title (string)
The title.
4. $params — Optional. (array) => array()
The params.
5. $is_primary — Optional. (constant) => true
The is primary.
6. $icon_class — Optional. (constant) => false
Class for an icon (since 1.1.7).
7. $confirmation — Optional. (constant) => false
Confirmation message before submit (since 1.1.7).
8. $method — Optional. (string) => 'GET'
The method.

Usage

  1. if ( !function_exists( 'fs_ui_action_button' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/freemius/includes/fs-core-functions.php'; 
  3.  
  4. // The slug. 
  5. $slug = ''; 
  6.  
  7. // The page. 
  8. $page = ''; 
  9.  
  10. // The action. 
  11. $action = ''; 
  12.  
  13. // The title. 
  14. $title = ''; 
  15.  
  16. // The params. 
  17. $params = array(); 
  18.  
  19. // The is primary. 
  20. $is_primary = true; 
  21.  
  22. // Optional class for an icon (since 1.1.7). 
  23. $icon_class = false; 
  24.  
  25. // Optional confirmation message before submit (since 1.1.7). 
  26. $confirmation = false; 
  27.  
  28. // The method. 
  29. $method = 'GET'; 
  30.  
  31. // NOTICE! Understand what this does before running. 
  32. $result = fs_ui_action_button($slug, $page, $action, $title, $params, $is_primary, $icon_class, $confirmation, $method); 
  33.  

Defined (1)

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

/freemius/includes/fs-core-functions.php  
  1. function fs_ui_action_button( 
  2. $slug,  
  3. $page,  
  4. $action,  
  5. $title,  
  6. $params = array(),  
  7. $is_primary = true,  
  8. $icon_class = false,  
  9. $confirmation = false,  
  10. $method = 'GET' 
  11. ) { 
  12. $slug,  
  13. $page,  
  14. $action,  
  15. $title,  
  16. $params,  
  17. $is_primary,  
  18. $icon_class,  
  19. $confirmation,  
  20. $method 
  21. );