Done !
| Server IP : 54.36.91.62 / Your IP : 216.73.216.38 Web Server : Apache System : Linux webm008.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : awaywithxm ( 25098) PHP Version : 7.0.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awaywithxm/www/wp-content/plugins/post-grid/includes/classes/ |
Upload File : |
<?php
if ( ! defined('ABSPATH')) exit; // if direct access
class class_post_grid_notices{
public function __construct(){
//add_action('admin_notices', array( $this, 'import_layouts' ));
}
public function import_layouts(){
$post_grid_info = get_option('post_grid_info');
$import_layouts = isset($post_grid_info['import_layouts']) ? $post_grid_info['import_layouts'] : '';
//delete_option('post_grid_info');
ob_start();
if($import_layouts != 'done'):
?>
<div class="update-nag">
<?php
echo sprintf(__('Post grid require import free layouts, please <a href="%s">click here</a> to go import page', 'post-grid-pro'), admin_url().'edit.php?post_type=post_grid&page=post-grid-settings&tab=help_support')
?>
</div>
<?php
endif;
echo ob_get_clean();
}
}
new class_post_grid_notices();