File Editor
Directories:
.. (Back)
Files:
class-analytics.php
class-api.php
class-arr.php
class-attachment.php
class-choices.php
class-conditional.php
class-content-ai.php
class-db.php
class-editor.php
class-html.php
class-locale.php
class-options.php
class-param.php
class-post-type.php
class-schema.php
class-security.php
class-sitepress.php
class-str.php
class-taxonomy.php
class-url.php
class-wordpress.php
index.php
Create New File
Create
Edit File: class-editor.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' ); } }
Save Changes
Rename File
Rename