' . sprintf( __( 'Disabled! Detected PHP %1$s, need PHP %2$s+', 'search-regex' ), phpversion(), '7.4' ) . '' ); return $links; } return; } require_once __DIR__ . '/search-regex-loader.php'; if ( is_admin() ) { SearchRegex\Admin\Admin::init(); } elseif ( defined( 'WP_CLI' ) && WP_CLI ) { // Trigger autoloader class_exists( SearchRegex\Cli\Search_Regex_CLI::class ); } add_action( 'rest_api_init', function () { SearchRegex\Api\Api::init(); } );