first commit

This commit is contained in:
Rachit Bhargava
2023-07-21 17:12:10 -04:00
parent d0fe47dde4
commit 5d0f0734d8
14003 changed files with 2829464 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
/*
Plugin Name: Contact Form 7 Shortcode Enabler
Plugin URI: #
Description: This plugin enables the usage of external shortcuts inside Contact Form 7 Forms.
Version: 1.1
Author: Tobias Zimpel (TZ Media)
Author URI: http://www.tobias-zimpel.de
License: GPLv2 or later.
*/
function wpcf7_shortcode_enabler_activate() {
if ( ! is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) and current_user_can( 'activate_plugins' ) ) {
// Stop activation redirect and show error
wp_die('Sorry, but this plugin requires the <a href="https://wordpress.org/plugins/contact-form-7/">Contact Form 7</a> Plugin to be installed and active. <br><a href="' . admin_url( 'plugins.php' ) . '">&laquo; Return to Plugins</a>');
}
}
register_activation_hook( __FILE__, 'wpcf7_shortcode_enabler_activate' );
// Activate Shortcode Execution for Contact Form 7
add_filter( 'wpcf7_form_elements', 'do_shortcode' );
?>

View File

@@ -0,0 +1,36 @@
=== Contact Form 7 Shortcode Enabler ===
Contributors: TZ Media
Tags: Contact Form 7, CF7, Shortcode, Shortcodes
Requires at least: 4.0
Tested up to: 4.6.1
Stable tag: 1.1
License: GPLv2 or later.
License URI: http://www.gnu.org/licenses/gpl-2.0.html
This plugin enables the usage of external shortcuts inside Contact Form 7 Forms.
== Description ==
Many themes, as well as other plugins, provide shortcodes for layout options like multi-column-layouts, tabs, etc.
By default, Contact Form 7 forms can not include shortcodes provided by WordPress or third-party-plugins or -themes.
This plugin enables the usage of external shortcodes inside Contact Form 7 Forms.
== Installation ==
1. Upload the entire cf7-enable-shortcode folder to the /wp-content/plugins/ directory.
1. Activate the plugin through the 'Plugins' menu in WordPress.
The Plugin requires no additional configuration.
== Frequently Asked Questions ==
= I'm missing some feature in the plugin =
I'm pretty sure you are missing a feature in Contact Form 7 itself, not in this plugin. Otherwise, please drop me a message and I'll see what I can do.
== Changelog ==
= 1.1 =
* NEW: Added dependency to Contact Form 7 Plugin
= 1.0 =
* NEW: Enables shortcodes inside Contact Form 7 Forms