public static function get_instance() { // create an object NULL === self::$instance and self::$instance = new self(); return self::$instance; // return the object }
function ajaxsearchpro_preview() { require_once ASP_PATH . "/includes/shortcodes.php"; $o = aspShortcodeContainer::get_instance(); $out = $o->wpdreams_asp_shortcode(array("id" => $_POST['asid'])); print $out; die; }