Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ladygeekgeek

    (@ladygeekgeek)

    Think I solved it:

    if( ! empty( $_POST[‘rcp_youtube’] ) ) {
    update_user_meta( $user_id, ‘rcp_youtube’, esc_url_raw( $_POST[‘rcp_youtube’] ) );
    } else {
    // Delete the user meta if the box is unchecked.
    delete_user_meta( $user_id, ‘rcp_youtube’ );
    }

    Hi @ladygeekgeek,

    Glad to hear you figured it out! ??

    If you have any more questions, shoot us an email here. (the www.ads-software.com forum policy doesn’t allow us to support the Pro version here)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove custom fields (and save empty values)’ is closed to new replies.