Extending password protected posts with name and email If you want to add name email or any additional fields in addition to password for protected posts, see the steps below: /****************** custom protected post form *****/ add_f...
Notify user for post status change <?php function notify_post_status( $post_id = NULL, $user = '' ) { if ( ! isset($_POST["post_id"]) ) { $post_id = $_POST["post_id"]; } else { return $post_id; } $post = get_post...