Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/brizy-pro   php

Repository URL to install this package:

Version: 2.3.7 

/ settings.php

<?php

class BrizyPro_Admin_Settings {

	/**
	 * @return BrizyPro_Admin_Settings
	 */
	public static function _init() {

		static $instance;

		return $instance ? $instance : $instance = new self();
	}

	private function __construct() {
		add_action( 'brizy_settings_capability_options', array( $this, 'add_capability_options' ) );
	}

	public function add_capability_options( $capability_options ) {
		$capability_options[] = array(
			'label'      => __( 'Limited Access', 'brizy-pro' ),
			'capability' => Brizy_Admin_Capabilities::CAP_EDIT_CONTENT_ONLY
		);

		return $capability_options;
	}


}