';
}
public function register_vault_entry_type() {
register_post_type('vault_entry', array(
'labels' => array(
'name' => 'Vault Entries',
'singular_name' => 'Vault Entry'
),
'public' => false,
'show_ui' => true,
'has_archive' => false,
'rewrite' => false,
'supports' => array('title', 'editor', 'custom-fields'),
'menu_icon' => 'dashicons-archive'
));
}
public function add_vault_meta_boxes() {
add_meta_box('vault_meta', 'Vault Settings', array($this, 'render_meta_box'), 'vault_entry', 'side');
}
public function render_meta_box($post) {
$type = get_post_meta($post->ID, '_vault_type', true);
echo '';
echo '';
}
public function save_vault_entry($post_id) {
if (array_key_exists('vault_type', $_POST)) {
update_post_meta($post_id, '_vault_type', sanitize_text_field($_POST['vault_type']));
}
}
public function enqueue_assets() {
wp_enqueue_style('vaultpress002-style', plugin_dir_url(__FILE__) . 'css/vault-style.css');
wp_enqueue_script('vaultpress002-script', plugin_dir_url(__FILE__) . 'js/vault-script.js', array('jquery'), false, true);
}
}
new VaultPress002CreatorCore();
Comments for Chair This!
https://chairthis.com
My Chair BlogSun, 04 May 2025 08:31:54 +0000
hourly
1 https://wordpress.org/?v=6.9.4
Comment on Hello world! by A WordPress Commenter
https://chairthis.com/2025/05/04/hello-world/#comment-1
Sun, 04 May 2025 08:31:54 +0000https://chairthis.com/?p=1#comment-1Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.
]]>