Noptin_Abstract_Ecommerce_Integration::initialize()

Setup hooks in case the integration is enabled.


Source Source

File: includes/integrations/class-noptin-abstract-ecommerce-integration.php

	public function initialize() {

		if ( empty( $this->product_post_type ) ) {
			return;
		}

		// Product actions.
		add_action( 'wp_trash_post', array( $this, 'product_trashed' ), $this->priority );
		add_action( 'untrashed_post', array( $this, 'product_untrashed' ), $this->priority );
		add_action( 'before_delete_post', array( $this, 'product_deleted' ), $this->priority );
		add_action( 'save_post', array( $this, 'product_updated' ), $this->priority );

	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.3.0Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation