Skip to content

Instantly share code, notes, and snippets.

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/8cb9b8d233776ddf01e5c580aeefaec8 to your computer and use it in GitHub Desktop.
Save arunbasillal/8cb9b8d233776ddf01e5c580aeefaec8 to your computer and use it in GitHub Desktop.
Update image attributes in WordPress Pages only.
/**
* Update image attributes in WordPress Pages only.
*
* The post type for a WordPress page is 'page'.
*
* @author Arun Basil Lal
* @link https://imageattributespro.com/codex/iaffpro_included_post_types/
*/
function prefix_iap_update_pages_only( $included_post_types ) {
$included_post_types[] = 'page';
return $included_post_types;
}
add_filter( 'iaffpro_included_post_types', 'prefix_iap_update_pages_only' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment