/** * Static Singleton Factory Method * * @return self */ public static function instance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; }
public function filter_delete_link($link, $post, $context) { $post = get_post($post); if ($post->post_type !== self::$post_type) { return $link; } $tab = Tribe__Events__Aggregator__Tabs__Scheduled::instance(); $args = array('tab' => $tab->get_slug(), 'action' => 'delete', 'ids' => absint($post->ID), 'nonce' => wp_create_nonce('aggregator_' . $tab->get_slug() . '_request')); return Tribe__Events__Aggregator__Page::instance()->get_url($args); }
<?php $table = new Tribe__Events__Aggregator__Record__List_Table(); $table->prepare_items(); ?> <?php echo Tribe__Events__Aggregator__Tabs__Scheduled::instance()->maybe_display_aggregator_missing_license_key_message(); $table->views(); ?> <form id="posts-filter" method="get"> <?php $table->nonce(); $table->display(); ?> </form>