Change label of CSV header, and removing others(Export Totals to CSV)

add_filter( ‘wcv_commissions_sum_export_columns’, ‘wcv_change_commissions_sum_export_columns’, 10, 1 ); function wcv_change_commissions_sum_export_columns( $desciption_args ) { $add_args = array( ‘bank_routing’ => __( ‘BSB’, ‘wc-vendors’ ), ); // Remove iban and swift column. unset( $desciption_args[‘bank_iban’] ); unset( $desciption_args[‘bank_swift’] ); $desciption_args = array_merge( $desciption_args, $add_args ); return…Continue reading

Add vat over the commission

// Add 16% VAT to vendor commission add_filter( ‘wcv_process_commission’, ‘my_wcv_commission_rate’, 10, 5 ); add_filter( ‘wcv_commission_rate’, ‘my_wcv_commission_rate’, 10, 5 ); function my_wcv_commission_rate( $commission, $product_id, $product_price, $order, $qty ) { $vat_fee = 0.16; $marketplace_split = $product_price – $commission; $vat = $marketplace_split *…Continue reading

Remove Confirmation Message Box Styling

/* Remove Confirmation Message Box Styling Original doc link: https://wpforms.com/developers/how-to-remove-confirmation-message-box-styling/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ .wpforms-confirmation-container-full { color: inherit !important; margin: 0 !important; background: none !important; border: none !important; padding: 0 !important; }Continue reading

Empty Admin Dashboard

add_action( ‘wp_dashboard_setup’, function () { global $wp_meta_boxes; $wp_meta_boxes[‘dashboard’] = array(); remove_action( ‘welcome_panel’, ‘wp_welcome_panel’ ); }, 1000 );Continue reading

Disable Site Health

// Remove Tools Submenu Item for Site Health. add_action( ‘admin_menu’, function () { remove_submenu_page( ‘tools.php’, ‘site-health.php’ ); } ); // Prevent direct access to the Site Health page. add_action( ‘current_screen’, function () { $screen = get_current_screen(); if ( ‘site-health’ ===…Continue reading