| 1 |
<?php |
| 2 |
/** |
| 3 |
* Metabox Class |
| 4 |
* |
| 5 |
* @package Templately |
| 6 |
*/ |
| 7 |
namespace Templately\Admin; |
| 8 |
|
| 9 |
defined( 'ABSPATH' ) or exit; |
| 10 |
|
| 11 |
class Metabox { |
| 12 |
/** |
| 13 |
* This is invoked via the add_meta_boxes hook |
| 14 |
* |
| 15 |
* @param string $post_type |
| 16 |
* @param WP_Post $post |
| 17 |
* @return void |
| 18 |
*/ |
| 19 |
public static function metabox( $post_type, $post ){ |
| 20 |
|
| 21 |
} |
| 22 |
public static function metabox_display( $post ){ |
| 23 |
|
| 24 |
} |
| 25 |
public static function metabox_save( $post_id, $post ){ |
| 26 |
if( ! current_user_can( 'edit_post' ) ) { |
| 27 |
return; |
| 28 |
} |
| 29 |
if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { |
| 30 |
return; |
| 31 |
} |
| 32 |
} |
| 33 |
} |