{ // module_execution How to create wordpress theme woocommerce supportable This code can help you to make woocommerce supportable theme, or upgrade your existing theme with theme code your theme ... STACK: [PHP] [WORDPRESS] DATE: [February 10, 2017] } _EXECUTE_SYSTEM() =>
{ // module_execution How to add/remove user role in wordpress users role in wordpress add/remove For role add use below function [code lang=”php”] $aRole = "Your role name"; $aDisplayName = ... STACK: [PHP] [WORDPRESS] DATE: [December 2, 2016] } _EXECUTE_SYSTEM() =>
{ // module_execution WordPress Content Functions These are the pre-define function defined in wordpress we just need to use it directly where we wanted. the most ... STACK: [WORDPRESS] DATE: [September 17, 2016] } _EXECUTE_SYSTEM() =>
{ // module_execution Hide admin bar from frontend in wordpress Add following line in function.php [code class=”php”] show_admin_bar( false ); [/code] STACK: [PHP] [WORDPRESS] DATE: [August 9, 2016] } _EXECUTE_SYSTEM() =>
{ // module_execution Shortcode not working in widget BY default short-codes are not working in widget area for this you have to add one line code in your ... STACK: [PHP] [WORDPRESS] DATE: [January 19, 2016] } _EXECUTE_SYSTEM() =>
{ // module_execution Custom log out to home page in wordpress add this code in theme function file (function.php) [code lang=”php”] function My_Log_Out() { Â Â Â $home =home_url(); Â Â Â wp_redirect( $home ); ... STACK: [WORDPRESS] DATE: [January 12, 2016] } _EXECUTE_SYSTEM() =>
{ // module_execution Custom file Upload in (spicifiec directory) WordPress [code lang=”php”] <?php $dir = wp_upload_dir(); $target_dir = $dir[‘basedir’] .’/’; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); if(move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { $url = ... STACK: [WORDPRESS] DATE: [January 11, 2016] } _EXECUTE_SYSTEM() =>
{ // module_execution How to crop image in wordpress? Please try below code. [code lang=”php”] <?php $img = ‘full image path’; //img URL $crop_image = aq_resize( $img, 352, 264, ... STACK: [WORDPRESS] DATE: [January 7, 2016] } _EXECUTE_SYSTEM() =>