This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Loco Standalone Loader | |
Description: Mimics Loco_hooks_LoadHelper without dependency on the main plugin | |
Author: Tim Whitlock | |
Version: 1.0 | |
*/ | |
new LocoStandaloneLoadHelper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Dokan_Setup_Wizard_Override extends Dokan_Seller_Setup_Wizard { | |
/** | |
* Introduction step. | |
*/ | |
public function dokan_setup_introduction() { | |
$dashboard_url = dokan_get_navigation_url(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'before_delete_post', function( $id ) { | |
$product = wc_get_product( $id ); | |
if ( ! $product ) { | |
return; | |
} | |
$all_product_ids = []; | |
$product_thum_id_holder = []; | |
$gallery_image_id_holder = []; |