mirror of
https://github.com/proelements/proelements.git
synced 2026-04-05 20:13:47 +00:00
21 lines
562 B
PHP
21 lines
562 B
PHP
<?php
|
|
|
|
namespace ElementorPro\Core\Security;
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
class Capability {
|
|
/**
|
|
* 'edit_post' is one of the meta-capabilities which is the combination of
|
|
* edit_posts and edit_others_posts primitive capabilities
|
|
*
|
|
* https://wordpress.org/documentation/article/roles-and-capabilities/
|
|
* https://learn.wordpress.org/tutorial/custom-post-types-and-capabilities/
|
|
*/
|
|
const EDIT_POST_META = 'edit_post';
|
|
const EDIT_POSTS = 'edit_posts';
|
|
const READ_PRIVATE_POSTS = 'read_private_posts';
|
|
}
|