Originally published at Виталий Алтаев. Please leave any comments there.
123 global $post; $term_list = wp_get_post_terms($post->ID, ‘product_category’, array("fields" => "all")); $currentProductCategory = $term_list[0] -> term_id;
Originally published at Виталий Алтаев. Please leave any comments there.
123 global $post; $term_list = wp_get_post_terms($post->ID, ‘product_category’, array("fields" => "all")); $currentProductCategory = $term_list[0] -> term_id;
Запись опубликована Виталий Алтаев. Please leave any comments there.
Simplest way to call function from loaded module is passing function name to the module: 123456789101112131415161718192021——— —main.lua ——— function myFunction() print("hello from module!") end local interface = require("interface") interface.init(myfunction) ——— — interface.lua — your module ——— module(…, package.seeall) function init(callFuncName) if(callFuncName)then callFuncName() end end
Запись опубликована Виталий Алтаев. Please leave any comments there.
Coloring images in Corona is very simple! If you want to paint your image in good solid color, you must know only two trick: First: your image must be WHITE(or white with transparency) and NOT BLACK! Black images will be invisible. Second: use magic bult-in function «YourImageObject:setFillColor(255,0,0)« If you hate (R,G,B) values, use a good [...]
Запись опубликована Виталий Алтаев. Please leave any comments there.
You can turn off authentication for upload.php. Just put code below in an .htaccess file in the same directory: <Files «upload.php»> Satisfy Any </Files>