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 | |
/** | |
* The filter you want to use is dokan_get_dashboard_nav() / dokan_get_dashboard_settings_nav() | |
* Place these codes under your themes functions.php | |
*/ | |
/** | |
* Remove a menu link from vendor dashboard | |
* @param array $urls |
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 | |
// Remove the default Dokan Vendor name from cart or checkout page | |
remove_filter( 'woocommerce_get_item_data', 'dokan_product_seller_info', 10 ); |
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 | |
//Remove Geolocation map from shop page with the help of a Dokan function | |
dokan_remove_hook_for_anonymous_class( 'woocommerce_before_shop_loop', 'Dokan_Geolocation_Product_View', 'before_shop_loop', 10 ); |
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 | |
//Remove progressbar from vendor dashboard | |
if(class_exists('Dokan_Pro_Dashboard')) { | |
remove_action( 'dokan_dashboard_before_widgets', array( Dokan_Pro_Dashboard::init(), 'show_profile_progressbar' ), 10 ); | |
} | |
if(class_exists('Dokan_Pro_Settings')) { | |
remove_action( 'dokan_settings_load_ajax_response', array( Dokan_Pro_Settings::init(), 'render_pro_settings_load_progressbar' ), 25 ); | |
} |
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 | |
//Remove shipping, tax & attributes from product edit page | |
if(class_exists('Dokan_Pro_Products')) { | |
remove_action( 'dokan_product_edit_after_inventory_variants', array( Dokan_Pro_Products::init(), 'load_shipping_tax_content' ), 10, 2 ); | |
remove_action( 'dokan_product_edit_after_inventory_variants', array( Dokan_Pro_Products::init(), 'load_variations_content' ), 20, 2 ); | |
} |
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
add_action('dokan_order_content_inside_before', function() { | |
$seller_id = dokan_get_current_user_id(); | |
var_dump($seller_id); | |
global $wp; | |
$current_url = home_url(); | |
$store_settings_page = $current_url . "/dashboard/settings/store"; |
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 | |
/** | |
* The Template for displaying all single posts. | |
* | |
* @package dokan | |
* @package dokan - 2014 1.0 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
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 | |
namespace WeDevs\DokanPro\REST; | |
use WP_REST_Server; | |
use WeDevs\Dokan\Abstracts\DokanRESTAdminController; | |
class LogsController extends DokanRESTAdminController { | |
/** |
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 | |
global $woocommerce, $wpdb; | |
$order_id = isset( $_GET['order_id'] ) ? intval( $_GET['order_id'] ) : 0; | |
if ( !dokan_is_seller_has_order( dokan_get_current_user_id(), $order_id ) ) { | |
echo '<div class="dokan-alert dokan-alert-danger">' . esc_html__( 'This is not yours, I swear!', 'dokan-lite' ) . '</div>'; | |
return; | |
} |
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 | |
/** | |
* Simple product add to cart | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/add-to-cart/simple.php. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you | |
* (the theme developer) will need to copy the new files to your theme to | |
* maintain compatibility. We try to do this as little as possible, but it does | |
* happen. When this occurs the version of the template file will be bumped and |
OlderNewer