' . esc_html__( 'Settings', 'ranktim-article-sync' ) . ''; $products_link = '' . esc_html__( 'Products', 'ranktim-article-sync' ) . ''; array_unshift( $links, $settings_link, $products_link ); return $links; } ); // --------------------------------------------------------------------------- // Bootstrap — wire everything together after all plugins are loaded // --------------------------------------------------------------------------- add_action( 'plugins_loaded', static function (): void { if ( is_admin() || ( function_exists( 'wp_doing_cron' ) && wp_doing_cron() ) ) { Ranktim_Migration::maybe_run(); } Ranktim_Cron::register_runner(); if ( is_admin() || ( function_exists( 'wp_doing_cron' ) && wp_doing_cron() ) ) { Ranktim_Cron::ensure_scheduled(); } if ( is_admin() ) { require_once RANKTIM_PLUGIN_DIR . 'includes/class-admin.php'; $encryption = new Ranktim_Encryption(); $settings = new Ranktim_Settings( $encryption ); $api = new Ranktim_Api_Client(); ( new Ranktim_Admin( $settings, $api ) )->register(); } if ( ! is_admin() ) { ( new Ranktim_Schema() )->register(); } } );