Inventory_Presser_WP_All_Import::add_hooks()
Adds hooks.
Return Return
(void)
Source Source
File: includes/integrations/class-wp-all-import.php
public function add_hooks() {
// Help save options in a multi-valued meta field.
add_action( 'pmxi_update_post_meta', array( $this, 'detect_delimited_options' ), 10, 3 );
// Mark imported vehicles as "For Sale" in the Availability taxonomy.
add_action( 'pmxi_saved_post', array( $this, 'set_availability_for_sale' ), 10, 1 );
// Number photos when they are uploaded.
add_action( 'pmxi_gallery_image', array( $this, 'number_photos' ), 10, 2 );
add_action( 'pmxi_before_post_import', array( $this, 'do_not_renumber_on_save' ) );
}
Expand full source codeCollapse full source codeView on Github