woocommerce_payment_token_deleted

woocommerce_payment_token_deleted

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_payment_token_deleted') is found 1 times:

  • /includes/data-stores/class-wc-payment-token-data-store.php line 138
    	public function delete( &$token, $force_delete = false ) {
    		global $wpdb;
    		$wpdb->delete( $wpdb->prefix . 'woocommerce_payment_tokens', array( 'token_id' => $token->get_id() ), array( '%d' ) );
    		$wpdb->delete( $wpdb->prefix . 'woocommerce_payment_tokenmeta', array( 'payment_token_id' => $token->get_id() ), array( '%d' ) );
    		do_action( 'woocommerce_payment_token_deleted', $token->get_id(), $token );
    	}
    
    	/**
    	 * Read a token from the database.
    	 *
    	 * @since 3.0.0
    

See this hook used in plugins: