PHP code example of calderawp / dismissible-notice
1. Go to this page and download the library: Download calderawp/dismissible-notice library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
calderawp / dismissible-notice example snippets
add_action( 'plugins_loaded', 'caeq_bootstrap' );
function caeq_bootstrap(){
if ( ! version_compare( PHP_VERSION, '5.3.0', '>=' ) ) {
if ( is_admin() || defined( 'DOING_AJAX' ) && DOING_AJAX ) {
include_once CAEQ_PATH . 'vendor/calderawp/dismissible-notice/src/callback_hook.php';
}
if ( is_admin() ) {
//BIG nope nope nope!
$message = sprintf( __( 'Caldera Easy Queries