wphooks.info - load_image_to_edit_attachmenturl

load_image_to_edit_attachmenturl

(trunk - 5.0-alpha-42993)

The hook occurs in the following file:

wp-admin/includes/image.php:
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
		 * Filters the image URL if not in the local filesystem.
		 *
		 * The filter is only evaluated if fopen is enabled on the server.
		 *
		 * @since 3.1.0
		 *
		 * @param string $image_url     Current image URL.
		 * @param string $attachment_id Attachment ID.
		 * @param string $size          Size of the image.
		 */
		$filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size );
	}

	/**
	 * Filters the returned path or URL of the current image.
	 *
	 * @since 2.9.0
	 *
	 * @param string|bool $filepath      File path or URL to current image, or false.
	 * @param string      $attachment_id Attachment ID.