• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
    • Help
      • Online help
      • Learn Git
      • Welcome to Bitbucket
      • Keyboard shortcuts
    • Log In
    Blackrock
    1. Blackrock

    main

    Public
    Actions
    • Clone

    Learn more about cloning repositories

    You have read-only access

    Navigation
    • Source
    • Commits
    • Branches
    • All Branches Graph
    • Graphs
    • Forks
    1. Blackrock
    2. main

    Source

    main/wp-content/plugins/seo-by-rank-math/includes/helpers/class-editor.php
    Артем ШиряевАртем Ширяев committed 554847ddcb906 Apr 2021
    Raw file
    Source viewDiff to previous
     
    1
    <?php
    2
    /**
    3
     * The Editor helpers.
    4
     *
    5
     * @since      1.0.9
    6
     * @package    RankMath
    7
     * @subpackage RankMath\Helpers
    8
     * @author     Rank Math <support@rankmath.com>
    9
     */
    10
    ​
    11
    namespace RankMath\Helpers;
    12
    ​
    13
    use RankMath\Helper;
    14
    ​
    15
    defined( 'ABSPATH' ) || exit;
    16
    ​
    17
    /**
    18
     * Editor class.
    19
     */
    20
    class Editor {
    21
    ​
    22
        /**
    23
         * Can add editor.
    24
         *
    25
         * @return bool
    26
         */
    27
        public static function can_add_editor() {
    28
            return Helper::has_cap( 'onpage_general' ) ||
    29
                Helper::has_cap( 'onpage_advanced' ) ||
    30
                Helper::has_cap( 'onpage_snippet' ) ||
    31
                Helper::has_cap( 'onpage_social' );
    32
        }
    33
    }
    • Git repository management for enterprise teams powered by Atlassian Bitbucket
    • Atlassian Bitbucket v5.10.1
    • Documentation
    • Contact Support
    • Request a feature
    • About
    • Contact Atlassian
    Atlassian

    Everything looks good. Well let you know here if theres anything you should know about.