WordPress.org

Ready to get started?Download WordPress

Forums

Make custom post field mandatory (1 post)

  1. IoanPokorny
    Member
    Posted 1 year 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