Open IllustrateNathan opened 2 years ago
To follow up - we had to investigate this ourselves and turns out the latest ACF runs block fields through admin ajax and as such $_GET or $post are not available. So the get the post id we ended up doing:
$url = wp_get_referer();
// Now get the components.
$url_components = wp_parse_url( $url );
// Now get the query from the components.
parse_str( $url_components['query'], $params );
// If we have a post value, check for blocks.
if ( isset( $params['post'] ) && is_admin() ) :
Hello,
In my field builder for my select field I am using a PHP variable which stores an associative array of block ID's and Names which the user is able to select from, this was working fine with WP V5.9, ACF V5.11.4 and the latest version of StoutLogic ACF Builder but doesn't output any options when updating ACF to any V5.12.*.
Please see below a var_dump of my field->build
Any help or suggestions would be appreciated.
Regards