Search results for: admin
Fix 500 Internal Server Error
A .htaccess file is a key file in all PHP-based applications that controls your website’s configuration.…
Disable Admin Password Reset Emails
Don't send an email to the administrator of the site after a user resets their password.
Set a Minimum Word Count for Posts
Force your authors to write posts that have a minimum length.
Set oEmbed Max Width
Set a max width for the embeds using oEmbed in the content.
wpadmin add phone number with address in orders page
add_action( 'manage_shop_order_posts_custom_column' , 'custom_orders_list_column_content', 50, 2 ); function custom_orders_list_column_content( $column, $post_id ) { global $the_order, $post;…
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');
Including product tax to commission calculation
add_filter( 'wcvendors_commission_rate', 'wcv_calculate_commission_include_product_tax', 10, 5 ); function wcv_calculate_commission_include_product_tax( $commission, $product_id, $product_price, $order, $qty ) { $product…
change the name of the Commission column
if ( ! function_exists( 'wcv_change_commission_table_columns_name' ) ) { /** * Change the name of the commission…
Hide “Everywhere Else” on the countries dropdown
if ( ! function_exists( 'wcv_hide_everywhere_else' ) ) { /** * Hide the "Everywhere else" option in…
Add CSS classes to apply for vendor label
/** * Add CSS class to apply for vendor label in a registration * * @param…
Force product type for all products
// Disable the product type drop down. add_filter('wcv_disable_product_type', function() { return true; } ); /** *…
Change the sold by label on the product archive
// Unhook WC Vendors method remove_action( 'woocommerce_after_shop_loop_item', array('WCV_Vendor_Shop', 'template_loop_sold_by'), 9 ); // Define new sold by…
Disable sold by link on checkout page
/** * Disable the sold by link on the checkout page */ add_filter('wcvendors_sold_by_link', 'wcv_disable_checkout_sold_by_link', 10, 2);…