This file contains hidden or 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( 'wp_ajax_dokan_fetch_product_child_category', 'dokan_fetch_product_child_category' ); | |
function dokan_fetch_product_child_category() { | |
if ( ! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'marketica-child-theme-nonce' ) ) { | |
wp_send_json_error( __( 'Nonce Verfication faild', 'dokan' ) ); | |
} | |
$category_id = ( isset( $_POST['category'] ) && ! empty( $_POST['category'] ) ) ? $_POST['category'] : ''; | |
if ( empty( $category_id ) ) { |
This file contains hidden or 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
/*MIME TYPE*/ | |
function wpufe_custom_upload_extensions( $extensions ) { | |
$extensions['custom'] = array( | |
'label' => __( 'Custom Extensions', 'wpuf' ), | |
'ext' => 'eps,ai', | |
); | |
return $extensions; | |
} |
This file contains hidden or 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 | |
/** | |
* Dokan Dashboard Template | |
* | |
* Dokan Main Dahsboard template for Fron-end | |
* | |
* @since 2.4 | |
* | |
* @package dokan | |
*/ |
This file contains hidden or 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( 'woocommerce_single_product_summary', 'seller_name_on_single', 11 ); | |
function seller_name_on_single(){ | |
global $product; | |
$seller = get_post_field( 'post_author', $product->get_id()); | |
$author = get_user_by( 'id', $seller ); | |
$store_info = dokan_get_store_info( $author->ID ); | |
if ( !empty( $store_info['store_name'] ) ) { ?> | |
<span class="details"> |
This file contains hidden or 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 | |
/* | |
- Missing icon fixing | |
- fontawesome v5 | |
- Use the code from line number 7 to 12 on your child-theme functions.php | |
*/ | |
add_filter ('dokan_get_dashboard_nav','change_icon',16); | |
function change_icon($urls){ | |
$urls['reviews']['icon'] = '<i class="fas fa-comments"></i>'; | |
$urls['reports']['icon'] = '<i class="fas fa-chart-line"></i>'; |
This file contains hidden or 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 | |
class Dokan_Setup_Wizard_Override extends Dokan_Seller_Setup_Wizard { | |
/** | |
* Introduction step. | |
*/ | |
public function dokan_setup_introduction() { | |
$dashboard_url = dokan_get_navigation_url(); |
This file contains hidden or 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 | |
/* | |
You can change any field title or remove any feild for the vendor -> settings -> payment -> bank transfer method. Please note that this | |
code need to be placed on your child-theme functions.php file | |
*/ | |
add_filter( 'dokan_withdraw_methods', 'wp1923_change_whithdraw_callback', 12 ); | |
function wp1923_change_whithdraw_callback( $methods ) { |
This file contains hidden or 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 | |
/* | |
Show Store name on the product thumbnail For Dokan Multivendor plugin | |
*/ | |
add_action( 'woocommerce_after_shop_loop_item_title','sold_by' ); | |
function sold_by(){ | |
?> | |
</a> |