array(
'dokan_edit_product_wrap_before',
'dokan_dashboard_wrap_before',
),
'end_wrap' => array(
'dokan_edit_product_wrap_after',
'dokan_dashboard_wrap_after'
),
);
foreach ($dokan_compatibles_actions['start_wrap'] as $key => $value) {
add_action($value, function(){ ?>
array(),
'data-sizes' => array(),
'data-srcset' => array(),
'srcset' => array(),
) );
return $attr;
} );
}
if ( !get_query_var( 'et_is-loggedin', false) ) {
global $post;
$dokan_registration_page_shortcode = ( ! empty( $post->post_content ) && strstr( $post->post_content, '[dokan-vendor-registration' ) );
if ( $dokan_registration_page_shortcode ) {
add_filter( 'etheme_mini_account_content_type', function () {
return 'none';
} );
}
}
}
} );
/*
* Adding extra field on New product popup/without popup form
*/
add_action( 'dokan_new_product_after_product_tags', 'etheme_dokan_new_product_field', 10 );
if ( !function_exists('etheme_dokan_new_product_field') ) {
function etheme_dokan_new_product_field(){ ?>
'',
'hierarchical' => 1,
'hide_empty' => 0,
'name' => 'brand[]',
'id' => 'brand',
'taxonomy' => 'brand',
'title_li' => '',
'class' => 'brand dokan-form-control dokan-select2',
'exclude' => '',
'selected' => array(),
'echo' => 0,
'walker' => new WeDevs\Dokan\Walkers\TaxonomyDropdown()
) );
echo str_replace( '
'ids') );
$selected = ( $term ) ? $term : array();
$drop_down_tags = wp_dropdown_categories( array(
'show_option_none' => '',
'hierarchical' => 1,
'hide_empty' => 0,
'name' => 'brand[]',
'id' => 'brand',
'taxonomy' => 'brand',
'title_li' => '',
'class' => 'brand dokan-form-control dokan-select2',
'exclude' => '',
'selected' => $selected,
'echo' => 0,
'walker' => new WeDevs\Dokan\Walkers\TaxonomyDropdown( $post_id )
) );
echo str_replace( '
get_id() );
$author = get_user_by( 'id', $seller );
$store_info = dokan_get_store_info( $author->ID );
if ( ! empty( $store_info['store_name'] ) ) { ?>
%s %s', dokan_get_store_url( $author->ID ), esc_html__( 'Sold by', 'xstore' ), $store_info['store_name'] ); ?>