Viewing 1 replies (of 1 total)
  • Hi, skimming through the plugin code, you might try (untested):

    if( function_exists( 'wpcf7_contact_form_tag_func' ) )
    	echo wpcf7_contact_form_tag_func(
    		[
    			'id'         => 123,
    			'title'      => '',
    			'html_id'    => '',
    			'html_name'  => '',
    			'html_class' => '',
    			'output'     => 'form'
    		],
    		'',
    		'contact-form-7'
    	);

    or

    if (   function_exists( 'wpcf7_contact_form' )
          && $contact_form = wpcf7_contact_form( $id = 123 )
    )
    	$contact_form->form_html(
    		[
    			'id'         => 123,
    			'title'      => '',
    			'html_id'    => '',
    			'html_name'  => '',
    			'html_class' => '',
    			'output'     => 'form'
    		]
     	);

    where I assume PHP 5.4+.

Viewing 1 replies (of 1 total)
  • The topic ‘Function Call’ is closed to new replies.