Make custom post field mandatory (1 post)

  1. IoanPokorny
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic