Fires when a comment is attempted on a password-protected post.
Parameters
$comment_post_idint- Post ID.
Source
do_action( 'comment_on_password_protected', $comment_post_id );
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
Fires when a comment is attempted on a password-protected post.
$comment_post_idintdo_action( 'comment_on_password_protected', $comment_post_id );
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.