aioseo_social_image_ignore_cover_block, true, $this->post, $matches
aioseo_social_image_ignore_cover_block, true, $this->post, $matches
Appears in: all-in-one-seo-pack.5.0.0.1
Hook Type: filter
Displaying hooks found in version: all-in-one-seo-pack.5.0.0.1apply_filters('aioseo_social_image_ignore_cover_block, true, $this->post, $matches') is found 1 times:
- /app/Common/Social/Image.php line 194
$postContent = aioseo()->helpers->getPostContent( $this->post ); preg_match_all( '|<img.*?src=[\'"](.*?)[\'"].*?>|i', (string) $postContent, $matches ); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage // Ignore cover block background image - WP >= 5.7. if ( ! empty( $matches[0] ) && apply_filters( 'aioseo_social_image_ignore_cover_block', true, $this->post, $matches ) ) { foreach ( $matches[0] as $key => $match ) { if ( false !== stripos( $match, 'wp-block-cover__image-background' ) ) { unset( $matches[1][ $key ] ); } } }