*/ namespace RankMath\Helpers; use RankMath\Helper; defined( 'ABSPATH' ) || exit; /** * Editor class. */ class Editor { /** * Can add editor. * * @return bool */ public static function can_add_editor() { return Helper::has_cap( 'onpage_general' ) || Helper::has_cap( 'onpage_advanced' ) || Helper::has_cap( 'onpage_snippet' ) || Helper::has_cap( 'onpage_social' ); } }