/** * Start an output buffer. * * This is used to put the contents of the shortcode into a variable rather * than outputting the HTML at run-time. This allows shortcodes to appear * in the correct location in the_content() instead of when it's created. * * @param string $query_name Optional * @since Achievements (3.0) */ private function start($query_name = '') { dpa_set_query_name($query_name); // Start output buffer ob_start(); }
/** * Used to clear the '_dpa_query_name' setting * * @since Achievements (3.0) */ function dpa_reset_query_name() { dpa_set_query_name(); }