Skip to content

Instantly share code, notes, and snippets.

@arunbasillal
Last active April 24, 2023 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arunbasillal/c61562dce2fd270e36a97184121b986f to your computer and use it in GitHub Desktop.
Save arunbasillal/c61562dce2fd270e36a97184121b986f to your computer and use it in GitHub Desktop.
Custom tag %image_id% for Image Attributes Pro
/**
* Custom tag %image_id% for Image Attributes Pro
*
* @param $image_id (integer) The ID of the image that is being updated.
* @param $parent_post_id (integer) The post to which the image is attached (uploaded) to.
* @param $args (array) An array containing additional arguments.
*
* @return (string) ID of the image.
*
* @refer https://imageattributespro.com/codex/iaffpro_get_custom_attribute_tag_tagname/
*/
function iaffpro_get_custom_attribute_tag_image_id( $image_id, $parent_post_id, $args = array() ) {
return $image_id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment