C
by Aurovrata V.
4 (11 reviews)
Contact Form 7 Polylang Module
This plugin allows multilingual contact form 7 management using the polylang plugin.
Tested up to WP 6.4 (Current: 6.9)
vtrunk
Current Version vtrunk
Updated 2 years ago
Last Update on 13 Dec, 2023
Synced 12 hours ago
Last Synced on
Rank
#3,171
—
No change
Active Installs
5K+
-14.7%
KW Avg Position
92
+0.3 better
Downloads
100.5K
+2 today
Support Resolved
0%
—
No change
Rating
80%
Review 4 out of 5
4
(11 reviews)
Next Milestone 6K
5K+
6K+
54
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Need 178 more installs to reach 6K+
Rank Changes
Current
#3,171
Change
Best
#
Downloads Growth
Downloads
Growth
Peak
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
4.0
11 reviews
Overall
80%
5
6
(55%)
4
2
(18%)
3
1
(9%)
2
1
(9%)
1
1
(9%)
Tracked Keywords
Showing 3 of 3| Keyword | Position | Change | Type | Updated |
|---|---|---|---|---|
| contact form 7 module | 63 | — | Tag | 13 hours ago |
| contact form 7 extension | 79 | — | Tag | 13 hours ago |
| polylang | 134 | — | Tag | 13 hours ago |
Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- trunk
- Last Updated
- Dec 13, 2023
- Requires WP
- 4.7+
- Tested Up To
- 6.4
- PHP Version
- 5.6 or higher
- Author
- Aurovrata V.
Support & Rating
- Rating
- ★ ★ ★ ★ ☆ 4
- Reviews
- 11
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowSimilar Plugins
WP Adminify – White Label WordPress, Admin Menu Editor, Login Customizer
7K+ installs
#2,736
Master Addons For Elementor - White Label, Free Widgets, Hover Effects, Conditions, & Animations
40K+ installs
#929
User Switching
200K+ installs
#252
Search & Replace
100K+ installs
#335
bbPress
100K+ installs
#377
Frequently Asked Questions
Common questions about Contact Form 7 Polylang Module
You have Polylang setup using a default language and a set of additional languages. When Polylang translates a custom post (such as the wpcf7 post), it keeps track of all translations using the post ID, by pairing the primary language post ID with its corresponding translated post IDs which is what the CF7 Polylang Extension does for you. So you need to search your translation using the primary language post ID, to do this you need to make use of the Polylang functions, $form_id = 252; //assuming this is your default language form ID $default_lang = pll_default_language('slug'); $current_lang = pll_current_language('slug); //the current language your page is being viewed as if($current_lang != $default_lang){ $form_id = pll_get_post($form_id, $current_lang); if(empty($form_id)){ //if a translation does not exists $form_id = 252; //show the default form } } //display your form echo do_shortcode('[contact-form-7 id=”'.$form_id.'″]');
Polylang only filters links and provides the current language function pll_current_language() for the front-end requests. Submissions are handled using admin hooks by the CF7 plugin and these do not have access to the pll functions. To overcome this limitation, v2.3 of this plugin introduced the _wpcf7_lang hidden variable which is automatically submitted. So you can find out the current language of the submission using the $_POST['_wpcf7_lang'] value.
The cf7 plugin provides a special mail tag [_site_url] which prints the site url. However, this is not one of the filtered polylang links. Therefore as of v2.3 this plugin now has the [_home_url] mail tag that you an use in your mail body and which will show the home url of site from which it was submitted from. Alternatively, you could also construct your own special mail tag, such as [_lang] using the follwoing code in your functions.php file, add_filter( 'wpcf7_special_mail_tags','my_cf7_mail_tag', 10,3); function my_cf7_mail_tag($output, $name, $html ) { if ( '_lang' == $name ) { $filter = $html ? 'display' : 'raw'; $output = $_POST['_wpcf7_lang']; } return $output; }
If you have a plugin which has specific translation strings used in CF7 forms, you need to tell the CF7 Polylang plugin to load the resources for the required locale. To do this use the following filter hook, add_filter('cf7pll_load_plugin_translation_resource', 'add_translation_resource'); function add_translation_resource($plugin_translation){ //the $plugin_translation is an array into which you need to add your plugin slug and version number. $plugin_translation['my-plugin-slug']=$version. return $plugin_translation; } this filter should be used by plugin developers to ensure their plugin translation resources are loaded.