/** * Stop Download Manager frontend script from loading on the Pro dashboard. * */ function wcv_dequeue_wpdm_script() { $dashboard_page_id = (array) get_option( ‘wcvendors_dashboard_page_id’, array() ); foreach ( $dashboard_page_id as $page_id ) { if ( is_page( $page_id ) ) { wp_dequeue_script(…Continue reading
/** * Disable All In One SEO on the vendor dashboard. */ add_filter( ‘aioseo_disable’, ‘wcv_aioseo_disable_term_output’ ); function wcv_aioseo_disable_term_output( $disabled ) { $current_page_id = get_the_ID(); if ( wcv_is_dashboard_page( $current_page_id ) ){ return true; } return false; }Continue reading
// Add the woocommerce_before_main_content to the elementor wc-archive-products widget add_action( ‘elementor/widget/render_content’, function( $content, $widget ) { if ( ‘wc-archive-products’ === $widget->get_name() ) { // Run the hooks without outputting the code that `do_action` will want to do ob_start(); do_action(‘woocommerce_before_main_content’); $beforeMainContent…Continue reading
add_filter( ‘wcv_product_price’, ‘price_min_max’ ); function price_min_max( $args ) { $args[‘custom_attributes’] = array( ‘min’ => 3.2, ‘max’ => 200.21, ‘step’ => 0.01, ‘data-parsley-type’ => ‘number’, ‘data-parsley-range-message’ => __( ‘Price must be between 3.2 and 200.01’, ‘wcvendors-pro’ ), ‘pattern’ => ‘[0-9]+([\.,][0-9]+)?’, ‘type’…Continue reading
google-site-verification=DmMH19PL8EFWGPQtwtWbjnRSNF3y5JAmaLFwFBLNW4QContinue reading
// Check if page is the home page, if yes, then dequeue identified scripts. Improve load time. function check_page_id() { // Get the current page ID global $post; $the_post_type = $post->post_type; $page_id = get_queried_object_id(); // Check if the page ID…Continue reading
// Remove plugin from client view to prevent potential issues if settings are changed. function idxc_hide_plugin() { if (is_admin()) { $current_user = wp_get_current_user(); // If the current user’s username is not “idxcentral”, hide the plugin if (‘idxcentral’ !== $current_user->user_login) {…Continue reading