Пример #1
0
 /**
  * Sets up our initial actions.
  *
  * @since  1.0.0
  * @access public
  * @return void
  */
 public function __construct()
 {
     // If the role manager is active.
     if (members_role_manager_enabled()) {
         add_action('admin_menu', array($this, 'add_admin_page'));
     }
 }
Пример #2
0
    /**
     * Role manager field callback.
     *
     * @since  1.0.0
     * @access public
     * @return void
     */
    public function field_enable_role_manager()
    {
        ?>

		<label>
			<input type="checkbox" name="members_settings[role_manager]" value="true" <?php 
        checked(members_role_manager_enabled());
        ?>
 />
			<?php 
        esc_html_e('Enable the role manager.', 'members');
        ?>
		</label>
	<?php 
    }