new. Settings that still use an old slug * land on the new tab, and old admin links open the new tab. */ const RENAMED_TABS = array(); /** * Links in the settings screen header; leave one out for no button. * * - website: the maker's website * - support: where people report problems (the plugin's GitHub issues) * - donate: where people can support the maker * * @return array */ public static function header_links() { return array( 'website' => 'https://www.wpallstars.com/', 'support' => 'https://github.com/wpallstars/wp-plugin-starter-template-for-ai-coding/issues', 'donate' => 'https://buymeacoffee.com/marcusquinn', ); } /** * Load the plugin's own helpers, before the features. */ public static function load() { } /** * Register the helpers' hooks, after the settings store's. */ public static function init() { } /** * Imports that belong to no feature, run once per DB_VERSION before * the features' own (for example settings from the plugin's earlier * names). Never write or delete other plugins' options. * * @param array $options Stored settings (raw, without defaults). * @param int $from_version Stored settings version before this upgrade. * @return array */ public static function migrate(array $options, $from_version) { unset($from_version); return $options; } /** * Settings tabs, in navigation order. A tab shows only when a setting * uses it; with no settings at all, the first one shows, empty. * * @return array */ public static function settings_tabs() { return array( 'general' => array( 'label' => __('General', 'wp-plugin-starter-template'), 'description' => __('WP Plugin Starter\'s settings appear here as features are added.', 'wp-plugin-starter-template'), ), ); } /** * Admin requests: load and start the plugin's own admin parts (other * tabs with the wpstarter_admin_tabs filter, scripts with the * wpstarter_admin_enqueue action). */ public static function admin() { } }