Get true or false from ACF field without using get_field()

$is_enabled = (bool) get_post_meta( get_the_ID(), 'meta_key', true );

Leave a Reply

Your email address will not be published.