why esc_url not working in smartmetabox
esc_url() is not a validator. Use PHP’s filter functions for that. Example: // $url is now an URL or FALSE $url = filter_var( ‘http://example.com’, FILTER_VALIDATE_URL ); if ( $url ) # update post meta else # delete post meta