posts – Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
Question
Imagine the following script:
<?php
namespace MySpace;
class MyClass {
public static function execute() {
// Do something
post_exists(1,'','','my_post_type');
}
}
?>
I'm now calling this function at t
0
10 months
0 Answers
0 views