You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
560 B
PHP
34 lines
560 B
PHP
<?php
|
|
/**
|
|
* The Editor helpers.
|
|
*
|
|
* @since 1.0.9
|
|
* @package RankMath
|
|
* @subpackage RankMath\Helpers
|
|
* @author Rank Math <support@rankmath.com>
|
|
*/
|
|
|
|
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' );
|
|
}
|
|
}
|