Commit 1189b4f8 authored by Constantin Druc's avatar Constantin Druc 🤦🏻

Add getQueryObject()

parent f9bf1cae
......@@ -14,8 +14,8 @@
*
* @var \WP_Post
*/
public $post;
private $post;
/**
*
......@@ -100,6 +100,13 @@
static public function decamelize($string) {
return strtolower(preg_replace('/(?|([a-z\d])([A-Z])|([^\^])([A-Z][a-z]))/', '$1_$2', $string));
}
/**
* @return int|\WP_Post
*/
public function getQueryObject(){
return $this->post;
}
static abstract protected function getPostType();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment