Last active
April 9, 2020 07:50
-
-
Save techies23/6d2852eedd6ae56c486056e021e4ee48 to your computer and use it in GitHub Desktop.
Inactive Logout Addon add your custom post type pages to disabled pages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'ina_disabled_pages', 'ina_disbable_pages_posts_types' ); | |
function ina_disbable_pages_posts_types( $post_types ) { | |
$post_types[] = 'your_custom_post_type_name'; | |
return $post_types; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment