8889841chome/clixcotz/gj.clix.co.tz/wp-content/plugins/mailchimp-for-wp/includes/admin/class-admin-tools.php000064400000002554150533045560027633 0ustar00get_plugin_page() === $page; } /** * Does the logged-in user have the required capability? * * @return bool */ public function is_user_authorized() { return current_user_can( $this->get_required_capability() ); } /** * Get required capability to access settings page and view dashboard widgets. * * @return string */ public function get_required_capability() { $capability = 'manage_options'; /** * Filters the required user capability to access the Mailchimp for WordPress' settings pages, view the dashboard widgets. * * Defaults to `manage_options` * * @since 3.0 * @param string $capability * @see https://codex.wordpress.org/Roles_and_Capabilities */ $capability = (string) apply_filters( 'mc4wp_admin_required_capability', $capability ); return $capability; } } home/clixcotz/gs.clix.co.tz/wp-content/plugins/mailchimp-for-wp/includes/admin/class-admin-tools.php000064400000003101150533046030027622 0ustar00get_plugin_page() === $page; } /** * Does the logged-in user have the required capability? * * @return bool */ public function is_user_authorized() { return current_user_can( $this->get_required_capability() ); } /** * Get required capability to access settings page and view dashboard widgets. * * @return string */ public function get_required_capability() { $capability = 'manage_options'; /** * Filters the required user capability to access the settings pages & dashboard widgets. * * @ignore * @deprecated 3.0 */ $capability = apply_filters( 'mc4wp_settings_cap', $capability ); /** * Filters the required user capability to access the Mailchimp for WordPress' settings pages, view the dashboard widgets. * * Defaults to `manage_options` * * @since 3.0 * @param string $capability * @see https://codex.wordpress.org/Roles_and_Capabilities */ $capability = (string) apply_filters( 'mc4wp_admin_required_capability', $capability ); return $capability; } }