/** * Output a custom contact form. * * @param $form_id * @since 6.3.4 * @return string */ function ccf_output_form($form_id) { echo CCF_Form_Renderer::factory()->get_rendered_form($form_id); }
require_once dirname(__FILE__) . '/classes/class-ccf-field-renderer.php'; require_once dirname(__FILE__) . '/classes/class-ccf-form-renderer.php'; require_once dirname(__FILE__) . '/classes/class-ccf-form-handler.php'; require_once dirname(__FILE__) . '/classes/class-ccf-upgrader.php'; require_once dirname(__FILE__) . '/classes/class-ccf-widget.php'; require_once dirname(__FILE__) . '/classes/class-ccf-export.php'; require_once dirname(__FILE__) . '/classes/class-ccf-ads.php'; require_once dirname(__FILE__) . '/classes/class-ccf-settings.php'; CCF_Custom_Contact_Forms::factory(); CCF_Constants::factory(); CCF_Form_CPT::factory(); CCF_Submission_CPT::factory(); CCF_Field_CPT::factory(); CCF_Choice_CPT::factory(); CCF_Form_Manager::factory(); CCF_Form_Renderer::factory(); CCF_Field_Renderer::factory(); CCF_Form_Handler::factory(); CCF_Upgrader::factory(); CCF_Export::factory(); CCF_Ads::factory(); CCF_Settings::factory(); /** * Setup the widget * * @since 6.4 */ function ccf_register_widget() { register_widget('CCF_Widget'); }