Created
February 27, 2017 15:50
-
-
Save anthonybudd/c57a0b0eece88e65bb358f341e5a628a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Class Example extends WP_AJAX | |
{ | |
protected $action = 'example'; | |
protected function run(){ | |
echo $this->has('foo'); // (bool) TRUE | |
echo $this->has('baz'); // (bool) FALSE | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment