/** * Flushing rewrite rules on plugin activation/deactivation * for better working of permalink structure */ function uep_activation_deactivation() { uep_custom_post_type(); flush_rewrite_rules(); }
function uep_activation_callback() { uep_custom_post_type(); flush_rewrite_rules(); }