Deprecated: trim(): Passing null to parameter #1 ($string)
-
Hello
I’m using ACF pro with ACFE to create a front end form .
When trying to retrieve the form on the frontend I get this error: Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\www\wp-content\plugins\acf-extended\includes\modules\form\module-form-hooks.php on line 40
here is the function I’m pointed to :function prepare_custom_html($value, $post_id, $field){ $custom_html = trim(get_field('acfe_form_custom_html', $post_id)); if($value === false && !empty($custom_html)) $value = true; return $value; }This is the template I’m using :
<?php /** * Template Name: Custom Template with ACF Form */ get_header(); acfe_form('create-job-template'); // Form ID get_footer(); ?>Not sure if is a development issue or I’m doing something wrong.
Many thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Deprecated: trim(): Passing null to parameter #1 ($string)’ is closed to new replies.