Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WordPress filter to change diviframework faq post type args
// Add this to your child theme's function.php file.
// Make sure you flush the rewrite rules.
// On wp cli you can 'wp rewrite flush'
// Or goto WordPress Admin > Settings > Permalink and save the settings which will flush the rules.
function ($args) {
$args['public'] = true;
$args['exclude_from_search'] = false;
return $args;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment