Front end – how to create a password protected post.
-
Hi,
Is there way to assign a password and create a visibility with password protected?
I feel like I can add some more line in the code below.
$atts = shortcode_atts( array( 'post_author' => $user_id ? $user_id : 1, // Current user, or admin 'post_status' => 'pending', 'post_type' => reset( $post_types ), // Only use first object_type in array ), $atts, 'cmb-frontend-form' );
It would be very helpful if there is any example.
Thank you for the help.
bigevent
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Front end – how to create a password protected post.’ is closed to new replies.