HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: /home/madepabj/www/wp-content/plugins/seo-by-rank-math/includes/helpers/class-editor.php
<?php
/**
 * The Editor helpers.
 *
 * @since      1.0.9
 * @package    RankMath
 * @subpackage RankMath\Helpers
 * @author     Rank Math <[email protected]>
 */

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' );
	}

	/**
	 * Add option to Lock Modified date in the editor.
	 *
	 * @return bool
	 */
	public static function can_add_lock_modified_date() {
		return apply_filters( 'rank_math/lock_modified_date', true );
	}
}