woocommerce_pre_delete_$this->object_type

woocommerce_pre_delete_$this->object_type

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.1.2

apply_filters('woocommerce_pre_delete_$this->object_type') is found 1 times:

  • /includes/abstracts/abstract-wc-data.php line 207
    		 * @param bool    $force_delete Whether to bypass the trash.
    		 *
    		 * @since 8.1.0.
    		 */
    		$check = apply_filters( "woocommerce_pre_delete_$this->object_type", null, $this, $force_delete );
    		if ( null !== $check ) {
    			return $check;
    		}
    		if ( $this->data_store ) {
    			$this->data_store->delete( $this, array( 'force_delete' => $force_delete ) );
    			$this->set_id( 0 );