'acf-form', 'new_post' => false, 'field_groups' => [ 'group_acf_dropzone_some' ], 'uploader' => 'wp', ]); return $content . ob_get_clean(); }); } /** * @filter 'acf/init' */ public function register_options_page() { if ( ! function_exists( 'acf_add_options_page' ) ) { return; } acf_add_options_page( array( 'page_title' => 'ACF Dropzone Test', 'description' => 'You are testing ACF Dropzone.', 'post_id' => 'acf_dropzone_test', 'icon_url' => 'dashicons-location-alt', 'autoload' => false, ) ); } /** * @action 'acf/init' */ public function register_blocks() { if ( ! function_exists('acf_register_block') ) { return; } // register a testimonial block acf_register_block(array( 'name' => 'acf-dropzone-test', 'title' => __('Dropzone Test'), 'description' => __('Testing ACF-Dropzone'), 'render_callback' => function ( $block, $content, $is_preview, $post_id ) { printf('