ddw_gftb_admin_menu

Registrer plugin menu panel.

Description

ddw_gftb_admin_menu(); 

Usage

  1. if ( !function_exists( 'ddw_gftb_admin_menu' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-toolbar/admin/admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ddw_gftb_admin_menu(); 
  7.  

Defined (1)

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

/admin/admin.php  
  1. function ddw_gftb_admin_menu() { 
  2.  
  3. /** Check for available Gravity Forms capabilities */ 
  4. $gftb_options_cap_check = current_user_can( 'gravityforms_edit_forms' ) ? 'gravityforms_edit_forms' : 'gform_full_access'; 
  5.  
  6. /** Set filter for options page capability */ 
  7. $gftb_options_capability = apply_filters( 'gftb_filter_options_capability', $gftb_options_cap_check ); 
  8.  
  9. /** Add the menu panel & options page */ 
  10. add_options_page( 
  11. __( 'Gravity Forms Toolbar', 'gravity-forms-toolbar' ),  
  12. __( 'Gravity Forms Toolbar', 'gravity-forms-toolbar' ),  
  13. esc_attr( $gftb_options_capability ),  
  14. ); 
  15.  
  16. } // end of function ddw_gftb_admin_menu