name = 'acf_cf7'; $this->label = __( 'Contact form 7', 'acf-field-for-contact-form-7' ); $this->category = 'basic'; $this->settings = $settings; parent::__construct(); } /** * Render acf fields. * * @param array $field The field */ function render_field( $field ) { $contact_forms = WPCF7_ContactForm::find(); ?> id() == $form_id ) { // apply filter $contect_object = apply_filters( 'acf_cf7_object', false ); // If check filter if ( $contect_object ) { return $form; } else { return do_shortcode( '[contact-form-7 id="' . $form->id() . '" title="' . $form->title() . ']' ); } } } } else { return $value; } } } new ACF_Field_For_Contact_form_7_V5( $this->settings ); }