Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Update date.php #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/date.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public static function tg_pane($contact_form, $args = '') {
public static function add_shortcodes() {
if (function_exists('wpcf7_add_form_tag')) {
// Remove Contact Form 7's date module
wpcf7_remove_shortcode('date');
wpcf7_remove_shortcode('date*');
wpcf7_remove_form_tag('date');
wpcf7_remove_form_tag('date*');

wpcf7_add_form_tag(array('date', 'date*'), array(__CLASS__, 'shortcode_handler'), true);
}
Expand Down