Inventory_Presser_Photo_Numberer::hooks()

hooks


Description Description

Adds hooks


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-photo-numberer.php

	function hooks()
	{
		add_action( 'add_attachment', array( $this, 'maybe_number_photo' ), 10, 1 );
		add_filter( "rest_pre_insert_attachment", array( $this, 'set_post_parent' ), 10, 2 );
	}