Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?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' );
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user