usp_post_status not working
-
I’m fairly new to WP and am not able to get the USP hook ‘usp_post_status’ to work. I simply want to set all user created posts to private when posted. Although WP and filters are new to me I have created other hooks that work just fine. I’m running the up to date USP plugin and have created a snippet as follows:
/*
*set usp post status to private
*/function set_post_status_private( $status) {
$status = ‘private’;
return $status;
}add_filter( ‘usp_post_status’, ‘set_post_status_private’ );
Is there something obvious that I’m missing? Thanks for any help provided.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘usp_post_status not working’ is closed to new replies.