acceptance.php
13 years ago
akismet.php
13 years ago
captcha.php
12 years ago
checkbox.php
13 years ago
date.php
13 years ago
file.php
12 years ago
flamingo.php
13 years ago
jetpack.php
13 years ago
number.php
13 years ago
quiz.php
13 years ago
response.php
15 years ago
select.php
12 years ago
special-mail-tags.php
13 years ago
submit.php
13 years ago
text.php
13 years ago
textarea.php
13 years ago
jetpack.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | add_action( 'wpcf7_admin_notices', 'wpcf7_jetpack_admin_notices' ); |
| 4 | |
| 5 | function wpcf7_jetpack_admin_notices() { |
| 6 | global $wpdb; |
| 7 | |
| 8 | if ( ! class_exists( 'Jetpack' ) |
| 9 | || ! Jetpack::is_module( 'contact-form' ) |
| 10 | || ! in_array( 'contact-form', Jetpack::get_active_modules() ) ) |
| 11 | return; |
| 12 | |
| 13 | $q = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_old_cf7_unit_id'"; |
| 14 | |
| 15 | if ( ! $wpdb->get_var( $q ) ) |
| 16 | return; |
| 17 | |
| 18 | $url = 'http://contactform7.com/jetpack-overrides-contact-forms/'; |
| 19 | ?> |
| 20 | <div class="error"> |
| 21 | <p><?php echo sprintf( __( '<strong>Jetpack may cause problems for other plugins in certain cases.</strong> <a href="%s" target="_blank">See how to avoid it.</a>', 'wpcf7' ), $url ); ?></p> |
| 22 | </div> |
| 23 | <?php |
| 24 | } |
| 25 | |
| 26 | ?> |