WordPress.org

Support

Support » How-To and Troubleshooting » Make custom post field mandatory

Make custom post field mandatory

  • IoanPokorny
    Member

    @ioanpokorny

    I would like to make a custom field mandatory.

    How can I add a hook so that a field is checked when I want to publish the post and prevent that from happening ‘if ( isset( $_POST[‘p2p_connections’] ) )’ (if that field has not been selected).

    Thanks in advance

  • The topic ‘Make custom post field mandatory’ is closed to new replies.