diff --git a/magic-link/magic-link-user-app.php b/magic-link/magic-link-user-app.php index 962e954..54cf00a 100644 --- a/magic-link/magic-link-user-app.php +++ b/magic-link/magic-link-user-app.php @@ -11,8 +11,8 @@ class Disciple_Tools_Magic_Links_Magic_User_App extends DT_Magic_Url_Base { public $page_title = 'User Contact Updates'; public $page_description = 'An update summary of assigned contacts.'; - public $root = 'smart_links'; // @todo define the root of the url {yoursite}/root/type/key/action - public $type = 'user_contacts_updates'; // @todo define the type + public $root = 'smart_links'; + public $type = 'user_contacts_updates'; public $post_type = 'user'; private $meta_key = ''; @@ -88,7 +88,9 @@ public function __construct() { 'enabled' => true, 'post_type' => 'contacts', 'ignore_ids' => [ 'comments' ] - ] + ], + 'icon' => 'mdi mdi-stack-exchange', + 'show_in_home_apps' => true, ]; /** diff --git a/magic-link/magic-link-user-groups-app.php b/magic-link/magic-link-user-groups-app.php index b2b9822..0c629ba 100644 --- a/magic-link/magic-link-user-groups-app.php +++ b/magic-link/magic-link-user-groups-app.php @@ -13,6 +13,7 @@ class Disciple_Tools_Magic_Links_Magic_User_Groups_App extends Disciple_Tools_Ma public $type = 'user_groups_updates'; public $sub_post_type = 'groups'; public $sub_post_type_display = 'Groups'; + public $meta = []; private static $_instance = null; public static function instance() { @@ -25,6 +26,8 @@ public static function instance() { public function __construct() { parent::__construct(); + $this->meta['show_in_home_apps'] = true; + $this->meta['icon'] = 'mdi mdi-account-group'; $this->sub_post_type_display = __( 'Groups', 'disciple_tools' );