Security check failed. Please try again.'; return; } // Sanitize and validate input $post_types = isset($_POST['aitepc_expiry_date_post_types']) ? array_map('sanitize_text_field', wp_unslash($_POST['aitepc_expiry_date_post_types'])) : []; // Update the option with the validated post types update_option('aitepc_expiry_date_post_types', $post_types); echo ''; } // Retrieve current settings $selected_post_types = get_option('aitepc_expiry_date_post_types', array()); // Get all built-in public post types $all_post_types = get_post_types(array('public' => true), 'objects'); // Exclude 'page' and 'attachment' $filtered_post_types = array_filter($all_post_types, function($post_type) { return !in_array($post_type->name, array('page', 'attachment')); }); // Display the settings form with tabs ?>

Expiry Date Metabox Settings

Select Post Types for Expiry Date Metabox

name, $selected_post_types) ? 'checked="checked"' : ''; ?>
id="aitepc_name); ?>">

Coming Soon

This feature is currently under development. Stay tuned for updates!

We’d love to hear your feedback! Let us know what features you’d like to see in the upcoming release.

Contact: kamran.channar99@gmail.com