Update image tags using entity metadata wrapper I'm trying to bulk update image tags using entity_metadata_wrapper.

I'm unable to see the image field when I use $emw-&gt;getPropertyInfo().

The bundle is called hub_page.

The code I'm using is:

$wrapper = entity_metadata_wrapper('node', $node_id, array('bundle' =&gt; 'hub_page'));
var_dump($wrapper-&gt;getPropertyInfo());


Is this the correct way?
You must pass in a node object as the second value, instead of a node ID.

$node = node_load($node_id);
$wrapper = entity_metadata_wrapper('node', $node, ['bundle' =&gt; 'hub_page']);


That might be your problem. Check out the docs: Entity metadata wrappers.