jetpack_postimages_exclude_image

jetpack_postimages_exclude_image

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.15.6

apply_filters('jetpack_postimages_exclude_image') is found 8 times:

  • /class.jetpack-post-images.php line 523
    				if ( ! empty( $attributes[ $id_key ] ) ) {
    					$image = self::get_attachment_data( $attributes[ $id_key ], $html_info['post_url'], $width, $height );
    					if ( false !== $image ) {
    						/** This filter is documented in class.jetpack-post-images.php */
    						if ( apply_filters( 'jetpack_postimages_exclude_image', false, $image ) ) {
    							break;
    						}
    						$images[] = $image;
    					}
    				}
    				break;
    
  • /class.jetpack-post-images.php line 539
    					foreach ( $attributes['ids'] as $img_id ) {
    						$image = self::get_attachment_data( $img_id, $html_info['post_url'], $width, $height );
    						if ( false !== $image ) {
    							/** This filter is documented in class.jetpack-post-images.php */
    							if ( apply_filters( 'jetpack_postimages_exclude_image', false, $image ) ) {
    								continue;
    							}
    							$images[] = $image;
    						}
    					}
    				}
    
  • /class.jetpack-post-images.php line 555
    						if ( ! empty( $media_file['id'] ) ) {
    							$image = self::get_attachment_data( $media_file['id'], $html_info['post_url'], $width, $height );
    							if ( false !== $image ) {
    								/** This filter is documented in class.jetpack-post-images.php */
    								if ( apply_filters( 'jetpack_postimages_exclude_image', false, $image ) ) {
    									continue;
    								}
    								$images[] = $image;
    							}
    						}
    					}
    
  • /class.jetpack-post-images.php line 725
    			 *     @type string $href       The permalink of the post containing the image.
    			 *     @type string $alt_text   The image alt text, if available.
    			 * }
    			 */
    			if ( apply_filters( 'jetpack_postimages_exclude_image', false, $image ) ) {
    				continue;
    			}
    
    			$images[] = $image;
    		}
    		return $images;
    
  • /jetpack_vendor/automattic/jetpack-post-media/src/class-images.php line 525
    				if ( ! empty( $attributes[ $id_key ] ) ) {
    					$image = self::get_attachment_data( $attributes[ $id_key ], $html_info['post_url'], $width, $height );
    					if ( false !== $image ) {
    						/** This filter is documented in class-images.php */
    						if ( apply_filters( 'jetpack_postimages_exclude_image', false, $image ) ) {
    							break;
    						}
    						$images[] = $image;
    					}
    				}
    				break;
    
  • /jetpack_vendor/automattic/jetpack-post-media/src/class-images.php line 541
    					foreach ( $attributes['ids'] as $img_id ) {
    						$image = self::get_attachment_data( $img_id, $html_info['post_url'], $width, $height );
    						if ( false !== $image ) {
    							/** This filter is documented in class-images.php */
    							if ( apply_filters( 'jetpack_postimages_exclude_image', false, $image ) ) {
    								continue;
    							}
    							$images[] = $image;
    						}
    					}
    				}
    
  • /jetpack_vendor/automattic/jetpack-post-media/src/class-images.php line 557
    						if ( ! empty( $media_file['id'] ) ) {
    							$image = self::get_attachment_data( $media_file['id'], $html_info['post_url'], $width, $height );
    							if ( false !== $image ) {
    								/** This filter is documented in class-images.php */
    								if ( apply_filters( 'jetpack_postimages_exclude_image', false, $image ) ) {
    									continue;
    								}
    								$images[] = $image;
    							}
    						}
    					}
    
  • /jetpack_vendor/automattic/jetpack-post-media/src/class-images.php line 727
    			 *     @type string $href       The permalink of the post containing the image.
    			 *     @type string $alt_text   The image alt text, if available.
    			 * }
    			 */
    			if ( apply_filters( 'jetpack_postimages_exclude_image', false, $image ) ) {
    				continue;
    			}
    
    			$images[] = $image;
    		}
    		return $images;