August 29, 2016

s2member

Setup WooCommerce Discounts and link with s2Member user roles/level: How it works? Create membership levels with s2member > Membership Levels/Labels.  | Video Tutorial If membership levels are created already so you will have them in “Membership Level” dropdown here (on this page, see left). Now select Discount Type either fixed price discount or percentage discount. Now […]

June 2, 2016

Using Enfold Layer Slider as a Plugin

Using Enfold Layer Slider as a Plugin You might will get surprised that if Layer Slider is a plugin already so what is this post about? In fact Layer Slider WP plugin comes in enfold within the theme and it works really well. But normally developers don’t try to mess with it and i had […]

May 31, 2016

PHP array_filter trim is not working as callback

PHP array_filter trim is not working as callback Have you tried this? $arr = array_filter($arr, ‘trim’); Solution: $arr = array_filter(array_map(‘trim’, $arr));  

May 22, 2016

wordpress shortcode to force return instead of output

wordpress shortcode to force return instead of output https://codex.wordpress.org/Shortcode_API function my_shortcode() { ob_start(); ?> <HTML> <here> … <?php return ob_get_clean(); }

May 12, 2016

WordPress helper function checked

WordPress helper function checked Older Method: <input type=”checkbox” id=”tutorsloop_share” name=”wpe_sharing[social_options][]” value=”tl” <?php echo  in_array( ‘tl’, $opts[‘social_options’] )?’checked=”checked”‘:”; ?> /> Preferred Method: <?php checked( in_array( ‘tl’, $opts[‘social_options’] ), true ); ?> <input type=”checkbox” id=”tutorsloop_share” name=”wpe_sharing[social_options][]” value=”tl” <?php checked( in_array( ‘tl’, $opts[‘social_options’] ), true ); ?> /> Click here for details on WordPress.org Click here for screenshots

April 29, 2016

What is secret ingredient of WordPress?

What is secret ingredient of WordPress? WordPress is a user-friendly blogging CMS and undoubtedly it’s alone enough to handle all kind of application requirements. You might will not agree but I try to elaborate that what I mean. Look, you can replicate content and easily copy paste the PayPal checkout button in every post or […]

February 28, 2016

WordPress Plugin – WP Sort Order

WP Sort Order

February 4, 2016

WP Docs

WP Docs