diff --git a/src/Cache_Command.php b/src/Cache_Command.php
index <HASH>..<HASH> 100644
--- a/src/Cache_Command.php
+++ b/src/Cache_Command.php
@@ -158,6 +158,7 @@ class Cache_Command extends WP_CLI_Command {
 		}
 
 		/** This filter is documented in wp-includes/class-wp-embed.php */
+		// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
 		if ( ! in_array( $post->post_type, apply_filters( 'embed_cache_oembed_types', $post_types ), true ) ) {
 			WP_CLI::warning( sprintf( "Cannot cache oEmbed results for '%s' post type", $post->post_type ) );
 
diff --git a/src/Fetch_Command.php b/src/Fetch_Command.php
index <HASH>..<HASH> 100644
--- a/src/Fetch_Command.php
+++ b/src/Fetch_Command.php
@@ -135,6 +135,7 @@ class Fetch_Command extends WP_CLI_Command {
 			);
 
 			// Allow `wp_filter_pre_oembed_result()` to provide local URLs (WP >= 4.5.3).
+			// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
 			$data = apply_filters( 'pre_oembed_result', null, $url, $oembed_args );
 
 			if ( null === $data ) {
PHPCS: ignore error about prefixing hook names