Skip to content

Commit

Permalink
Add meta to include apps in the home screen app.
Browse files Browse the repository at this point in the history
  • Loading branch information
corsacca committed Aug 9, 2024
1 parent ecfe037 commit 31a2180
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions magic-link/magic-link-user-app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';

Expand Down Expand Up @@ -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,
];

/**
Expand Down
3 changes: 3 additions & 0 deletions magic-link/magic-link-user-groups-app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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' );

Expand Down

0 comments on commit 31a2180

Please sign in to comment.