Plugin Directory


Ignore:
Timestamp:
10/13/2025 05:49:01 PM (6 months ago)
Author:
ninjateam
Message:

Contact Form 7 Database 3.0.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cf7-database/trunk/cf7-database.php

    r3056615 r3377688  
    22/*
    33 * Plugin Name: Contact Form 7 Database Lite
    4  * Plugin URI: https://ninjateam.org
     4 * Plugin URI: https://ninjateam.org/contact-form-7-database/
    55 * Description: Contact Form 7 Database is a plugin for WordPress allows you save all submitted from contact form 7 to database and display in Contact > Database menu
    6  * Version: 3.0.8
     6 * Version: 3.0.9
    77 * Author: NinjaTeam
    88 * Author URI: http://ninjateam.org
     
    2424    );
    2525    return;
     26}
     27
     28if ( ! defined( 'CF7D_VERSION' ) ) {
     29    define( 'CF7D_VERSION', '3.0.9' );
    2630}
    2731
     
    4751if ( ! function_exists( 'wpcf7db_plugin_init' ) ) {
    4852    function wpcf7db_plugin_init() {
     53        if ( ! class_exists( 'WPCF7' ) ) {
     54            add_action( 'admin_notices', function() {
     55                ?>
     56                <div class="notice notice-error">
     57                <p>
     58                    <?php
     59                    printf(
     60                        /* translators: 1: Contact Form 7, 2: Contact Form 7 Database */
     61                        esc_html__( 'Please activate %1$s to use %2$s.', 'cf7-database' ),
     62                        '<strong>Contact Form 7</strong>',
     63                        '<strong>Contact Form 7 Database</strong>'
     64                    );
     65                    ?>
     66                </p>
     67                </div>
     68                <?php
     69            } );
     70            return;
     71        }
     72       
    4973        require_once CF7D_PLUGIN_DIR . '/functions.php';
    5074        require_once CF7D_PLUGIN_DIR . '/frontend/init.php';
Note: See TracChangeset for help on using the changeset viewer.