depricated WPCF7_TagGenerator::add()
-
Deprecated: WPCF7_TagGenerator::add(): Use of tag generator instances older than version 2 is deprecated. Version 1 instance (password) detected. in /{domain}/wp-includes/functions.php on line 6085
this is generated because of the function
wpcf7_add_tag_generator_password()
that function is found here
/wp-content/plugins/wpcf7-redirect/modules/cf7-shortcode-password-field.php
the error can be resolved by adding a comma to the end of line 168 (callback) and adding in a new line 169 of array(‘version’ => ‘2’)
function wpcf7_add_tag_generator_password() {
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add(
'password',
__( 'password', 'wpcf7-redirect' ),
'wpcf7_tag_generator_password',
array( 'version' => '2' )
);
}
- You must be logged in to reply to this topic.