gl_register_button

The Google Locker for WordPress gl register button function.

Description

gl_register_button( $buttons ); 

Parameters (1)

0. $buttons
The buttons.

Usage

  1. if ( !function_exists( 'gl_register_button' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-locker-for-wordpress/admin/init.php'; 
  3.  
  4. // The buttons. 
  5. $buttons = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gl_register_button($buttons); 
  9.  

Defined (1)

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

/admin/init.php  
  1. function gl_register_button( $buttons ) { 
  2.  
  3. if ( !current_user_can( 'edit_posts' ) ) 
  4. return $buttons; 
  5. array_push( $buttons, "g_locker" ); 
  6. return $buttons;