| | |
| | | if (empty(jvbGlobalDirectories())) { |
| | | return; |
| | | } |
| | | $this->cache = new CacheManager('directory', WEEK_IN_SECONDS); |
| | | $this->cache = CacheManager::for('directory', WEEK_IN_SECONDS); |
| | | |
| | | add_action('init', [$this, 'registerDirectories']); |
| | | jvb_register_do_once('directories_registered', [$this, 'activate']); |
| | |
| | | 'not_found' => "No {$plural} found", |
| | | 'not_found_in_trash' => "No {$plural} found in Trash" |
| | | ], |
| | | 'menu_icon' => jvbCSSIcon('asc'), |
| | | 'menu_icon' => jvbCSSIcon('sort-ascending'), |
| | | 'public' => true, |
| | | 'publicly_queryable' => true, |
| | | 'show_in_menu' => true, |