__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace EssentialBlocks\Core;
use EssentialBlocks\Traits\HasSingletone;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class PostMeta {
use HasSingletone;
/**
* Register meta
*/
public function register_meta() {
register_meta(
'post',
'_eb_attr',
array(
'show_in_rest' => true,
'single' => true,
'auth_callback' => array( $this, 'auth_callback' ),
)
);
}
/**
* Determine if the current user can edit posts
*
* @return bool True when can edit posts, else false.
*/
public function auth_callback() {
return current_user_can( 'edit_posts' );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Block.php | File | 5.61 KB | 0640 |
|
| Blocks.php | File | 4.69 KB | 0640 |
|
| BlocksPatterns.php | File | 6.88 KB | 0640 |
|
| FaqSchema.php | File | 6.88 KB | 0640 |
|
| FontLoader.php | File | 4.79 KB | 0640 |
|
| Maintenance.php | File | 5.06 KB | 0640 |
|
| ModifyWPCore.php | File | 761 B | 0640 |
|
| PageTemplates.php | File | 4.87 KB | 0640 |
|
| PostMeta.php | File | 637 B | 0640 |
|
| Scripts.php | File | 30.98 KB | 0640 |
|