Notice: WPCF7_Shortcode is deprecated since Contact Form 7 version 4.6! Use WPCF7_FormTag instead. in /home/admin1/public_html/wp-content/plugins/contact-form-7/includes/functions.php on line 374
Andrew
]]>Can you please check wpcf7_add_shortcode is deprecated since Contact Form 7 version 4.6!
Am Using Multifile Upload Field for Contact Form 7 Version – 1.0.1
Getting this notice error - Notice: wpcf7_add_shortcode is deprecated since Contact Form 7 version 4.6! Use wpcf7_add_form_tag instead. in C:\xampp\htdocs\wp\wp-content\plugins\contact-form-7\includes\functions.php on line 355
Notice: wpcf7_add_shortcode is deprecated since Contact Form 7 version 4.6! Use wpcf7_add_form_tag instead. in /home/whartever/public_html/kindspaevents.com/wp-content/plugins/contact-form-7/includes/functions.php on line 355
Which I guess relates to this:
function wpcf7_deprecated_function( $function, $version, $replacement ) {
$trigger_error = apply_filters( 'deprecated_function_trigger_error', true );
if ( WP_DEBUG && $trigger_error ) {
if ( function_exists( '__' ) ) {
trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since Contact Form 7 version %2$s! Use %3$s instead.', 'contact-form-7' ), $function, $version, $replacement ) );
} else {
trigger_error( sprintf( '%1$s is <strong>deprecated</strong> since Contact Form 7 version %2$s! Use %3$s instead.', $function, $version, $replacement ) );
}
}
}
That’s very unusual. Any idea why I would receive this?
]]>The plugin is throwing this notice at me.
I’m not confident enough with php to update it myself. Please let me know if anyone manages to do it – it’s very helpful!
“Notice: wpcf7_add_shortcode is deprecated since Contact Form 7 version 4.6! Use wpcf7_add_form_tag instead. in …plugins/contact-form-7/includes/functions.php on line 357
]]>First of all, thank you for your plugin. However, in case you weren’t aware….
Contact Form 7 is no longer using a function which Bootstrap for Contact Form 7 uses. This error shows up after updating to the new CF7:
“Notice: wpcf7_add_shortcode is deprecated since Contact Form 7 version 4.6! Use wpcf7_add_form_tag instead. in /…/htdocs/….online.de/wp-content/plugins/contact-form-7/includes/functions.php on line 351”
Thanks,
Trevor
wpcf7_add_shortcode('opencourselist', 'coursebox', true);
function coursebox(){
global $post;
$args = array('post_type' => 'mcourses', 'numberposts' => 0, 'numberposts' => -1,'posts_per_page' => -1, 'orderby' => 'menu_order', 'order' => 'asc' );
$myposts = get_posts( $args );
$output = "<ul class='course-amounts cf'>";
foreach ( $myposts as $post ) : setup_postdata($post);
$title = get_the_title();
$output .= "<li><span class='wpcf7-form-control-wrap $title'><input class='wpcf7-form-control wpcf7-number wpcf7-validates-as-number' type='number' aria-invalid='false' max='15' min='0' value='$title' name='opencourse[]'></span><label>$title</label></li>";
endforeach;
$output .= "</ul>";
return $output;
}
This works fine in the form section. However in the Mail section I only get a list of numbers(the values). How can I modify the output in the Mail section so it will show label and value.
https://www.ads-software.com/plugins/contact-form-7/
]]>I’ve created a few custom shortcodes for my emails.
But they just show up as plain-text when i send them.
I use the wpcf7_add_shortcode( ‘my_shortcode’, ‘my_shortcode’); format
My shortcodes work everywhere but not in your plugin.
Somehow i get it to work with using add_action(‘wpcf7_special_mail_tags’, ‘my_shortcode’);
But that only grabs my latest shortcode.
My shortcodes do the same thing but their outcome is different.
For example i have 10 forms all with a different origin.
Per form i Bcc: the registred users email from that same origin.
Is it a duplication issue or is the wpc7_add_shortcode just not working atm?
Hopefully i’ve informed you well enough.
Yours sincerely,
roywebniq
https://www.ads-software.com/plugins/contact-form-7/
]]>I’m using the latest version of WP and the plugin, but since the update the wpcf7_add_shortcode function is broken. I’m using this code:
add_action( 'wpcf7_init', 'customShortcodes' );
function customShortcodes()
{
wpcf7_add_shortcode('shortcode1', 'function1', true);
}
When I add a echo to the customShortCodes function I see the echo, but when I add it to function1 it doesn’t show the data, so it seems that the function is broken and doesn’t call the function defined in the 2nd parameter. Is this a bug or am I doing something wrong?
https://www.ads-software.com/plugins/contact-form-7/
]]>https://www.ads-software.com/plugins/contact-form-7/
]]>