Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('plugins_loaded', 'codedropz_upload_condition');
- function codedropz_upload_condition(){
- $filter = get_option('show_in_dnd_file_upload_after');
- $codedropz = DNDMFU_WC_PRO_HOOKS::get_instance();
- // remove/unregister current hook
- remove_action( $filter, [ $codedropz, 'dndmfu_wc_display_file_upload' ], 500 );
- // Your categories condition here (ie: woocommerce_before_variations_form)
- add_action( 'woocommerce_before_variations_form', [ $codedropz, 'dndmfu_wc_display_file_upload' ], 500 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement