• mireillesan

    (@mireillesan)


    I’m trying to move the edd_purchase_variable_pricing function away from the edd_purchase_link_top filter and noticed your plugin adds the following:

    // Variable price
    		remove_action( 'edd_purchase_link_top', 'edd_purchase_variable_pricing' );
    		add_action( 'edd_purchase_link_top', array( $this, 'edd_purchase_variable_pricing' ), 10, 2 );

    I’m trying to remove this with the following code without success:

    if ( class_exists( 'EDD_Sale_Price' ) ) { 	
    	remove_action( 'edd_purchase_link_top', array( EDD_Sale_Price(), 'edd_purchase_variable_pricing' ), 10, 2 );	
    }

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Try:

    
    if ( class_exists( 'EDD_Sale_Price' ) ) { 	
    	remove_action( 'edd_purchase_link_top', array( EDD_Sale_Price()->price, 'edd_purchase_variable_pricing' ), 10, 2 );	
    }
    
    Thread Starter mireillesan

    (@mireillesan)

    Thank you; works like a charm!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Move edd_purchase_variable_pricing somewhere else’ is closed to new replies.