function initialize_classes() { // If a CPT is selected, show List/Add/Edit PS links. if (dfrps_default_cpt_is_selected()) { new Dfrps_Cpt(); } new Dfrps_Configuration(); new Dfrps_Tools(); }
function dfrps_default_cpt_not_selected() { if (!dfrps_default_cpt_is_selected()) { echo '<div class="update-nag" style="border-color: red;">' . __('The <strong>Datafeedr Product Sets</strong> plugin requires you to', DFRPS_DOMAIN); echo ' <a href="' . admin_url('admin.php?page=dfrps_configuration') . '">'; echo __('select a Default Custom Post Type', DFRPS_DOMAIN); echo '</a>.</div>'; } }