# templately/1.2.0/core/admin/class-metabox.php

Templately – Elementor &amp; Gutenberg Template Library: 6500+ Free &amp; Pro Ready Templates And Cloud!, version 1.2.0. 33 lines.

- Page: https://pluginprobe.com/plugins/templately/1.2.0/code/core/admin/class-metabox.php
- Raw: https://pluginprobe.com/plugins/templately/1.2.0/raw/core/admin/class-metabox.php
- Modified: 2020-03-02T08:11:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/templately/1.2.0/code/core/admin/class-metabox.php#L10-L20`.

```php
<?php
/**
 * Metabox Class
 * 
 * @package Templately
 */
namespace Templately\Admin;

defined( 'ABSPATH' ) or exit;

class Metabox {
    /**
     * This is invoked via the add_meta_boxes hook
     *
     * @param string $post_type
     * @param WP_Post $post
     * @return void
     */
    public static function metabox( $post_type, $post ){
        
    }
    public static function metabox_display( $post ){

    }
    public static function metabox_save( $post_id, $post ){
        if( ! current_user_can( 'edit_post' ) ) {
            return;
        }
        if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { 
            return;
        }
    }
}
```
