Files
roi-theme/wp-content/plugins/seo-by-rank-math/includes/helpers/class-editor.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

42 lines
765 B
PHP
Executable File

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