Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Piklist Checker Doesn't Seem to Be Working #2956
    blair2004
    Member

    As 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.

    in reply to: Piklist Checker Doesn't Seem to Be Working #2954
    blair2004
    Member

    what 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.

    in reply to: Piklist Checker Doesn't Seem to Be Working #2949
    blair2004
    Member

    Hi, 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.

Viewing 3 posts - 1 through 3 (of 3 total)