$__value ) { // Skip invalid variable names and names that would overwrite this function's own variables if ( ! is_string( $__key ) || ! preg_match( '/^[a-zA-Z_][a-zA-Z0-9_]*$/', $__key ) || 0 === strpos( $__key, '__' ) || in_array( $__key, [ 'this', 'GLOBALS' ], true ) ) { continue; } $$__key = $__value; } include $__path; } )( $path, $data ); return ob_get_clean(); } // auto add select value for acf forms-tabs add_filter( 'acf/load_field/name=forms', function ( $field ) { $forms = GravityForm::all_active(); $field['choices'] = []; foreach ( $forms as $form ) { $field['choices'][ $form->id ] = $form->title; } return $field; } );