Forum Replies Created
-
AuthorPosts
-
blair2004MemberAs i said, i’m using this method, but there aren’t any notice. I have downloaded WordPress Helpers plugin to explore code and discover how piklist checker is used. After install, there was an error, since i got piklist_checker included in my projet, there were also piklist_checker included there (in wordpress helpers plugin). To explain that error, it seems that a constant is defined twice…
this is just a break, just to tell you that after everything i discovered here, notices are not displayed.
blair2004Memberwhat about plugin development case ?
After having read piklist checker class, i discovered “message()” method. Instead of using “return”, i’m using this method like this.if( !piklist_checker::check( __FILE__ ) )
{
piklist_checker::message();
}However, the displayed notice doesn’t specify the plugin or theme which required piklist install/activation.
blair2004MemberHi, i’m facing the same problem. Here is my code
include_once( dirname( __FILE__ ) . '/includes/piklist-checker.php' ); add_action( 'init' , 'inition_cvk' ); function inition_cvk() { if( is_admin() ) { if( ! piklist_checker::check( __FILE__ ) ) { return false; } } }I have followed all code example, but notices doesn’t appear while piklist is disabled or not available. therefore, piklist_checker::check( __FILE__ ) work fine, but there are not notices and the plugin is not desactivated.
I use alternatively “admin_notices” hook to display a notice.
-
AuthorPosts