What is the easiest and fastest way to convert website to Apk??
If you need any kind of help with theme installation, setup, or just some help I can help you without any cost. Also, if you need to have some plugin, theme, or script that you wish to test I can also do it for you at no cost. Just PM and I will get back to you. When PM at me let me know what I can help you with. I have helped some of you and they are happy with my help. Only remember that our hours might be different so you would know if I don't answer quickly. God Bless You.
hello. Thank you for your kindness and sharing knowledge. do you have knowledge about php?
I have some parts of code written for wcfm and i need to adapt it to dokan. I leave you an example. this could be useful to many people. Thanks in advance.
/*limits the maximum and minimum size of images and video to be uploaded by the seller. Made for WCFM - change to dokan*/
add_filter('wp_handle_upload_prefilter', function($file) {
$referrer = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : '';
if(wcfm_is_vendor() && $referrer && strpos($referrer, get_wcfm_edit_product_url()) !== false) {
$type = isset($file['type' ]) ? $file['type' ] : '';
$size = filesize( $file['tmp_name'] );
$size_in_mb = wc_format_decimal( ($size/1024)/1024, 2 );
if(strpos($type, 'video') === 0) {
$max_size = 3;
$file_type = 'Video';
} elseif(strpos($type, 'image') === 0) {
$max_size = 0.3;
$file_type = 'Image';