gl_register_button
The WordPress Core gl register button function.
Description
gl_register_button( $buttons );
Parameters (1)
- 0. $buttons
- The buttons.
Usage
if ( !function_exists( 'gl_register_button' ) ) { require_once '/admin/init.php'; } // The buttons. $buttons = null; // NOTICE! Understand what this does before running. $result = gl_register_button($buttons);
Defined (1)
The function is defined in the following location(s).
- /admin/init.php
- function gl_register_button( $buttons ) {
- if ( !current_user_can( 'edit_posts' ) )
- return $buttons;
- array_push( $buttons, "g_locker" );
- return $buttons;
- }