after-kubio-activation.php
4 months ago
allow-kubio-blog-override.php
2 years ago
cache-plugins.php
4 years ago
default-editor-overlay.php
1 year ago
dismissable-notice.php
1 month ago
gutenerg-plugin-check.php
1 year ago
image-size-auto-fix.php
1 year ago
kubio-fresh-site.php
2 years ago
post-insert.php
3 months ago
register-meta-fields.php
3 years ago
requirements-notices.php
1 year ago
site-urls.php
1 year ago
starter-sites-feature.php
1 year ago
svg-kses.php
1 year ago
wp-import.php
2 months ago
gutenerg-plugin-check.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | function _kubio_gutenberg_check_notice() { |
| 4 | ?> |
| 5 | <p> |
| 6 | <?php |
| 7 | // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 8 | printf( |
| 9 | // translators: %1$s is the name of the plugin, %2$s is the name of the other plugin. |
| 10 | esc_html__( 'The %1$s plugin is active on this site. This might interfere with the proper functioning of the %2$s plugin. It is recommended to deactivate the %1$s plugin', 'kubio' ), |
| 11 | '<strong>Gutenberg</strong>', |
| 12 | '<strong>Kubio Page Builder</strong>' |
| 13 | ); |
| 14 | ?> |
| 15 | </p> |
| 16 | <?php |
| 17 | } |
| 18 | |
| 19 | function kubio_add_gutenberg_plugin_notice() { |
| 20 | include_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 21 | if ( is_plugin_active( 'gutenberg/gutenberg.php' ) || defined( 'GUTENBERG_VERSION' ) ) { |
| 22 | kubio_add_dismissable_notice( 'kubio-gutenberg-check-1', '_kubio_gutenberg_check_notice', 1 * DAY_IN_SECONDS, array(), 'notice-warning' ); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | add_action( 'plugins_loaded', 'kubio_add_gutenberg_plugin_notice' ); |
| 27 |