WooCommerce: How to get Product data from $product Object

WooCommerce: How to get Product data from $product Object

These simple PHP snippets will help you in your work with WooCommerce Products. 1. You have access to $product Hooks (do_action and apply_filters) use additional arguments which are passed on to the function. If they allow you to use the “$product” object you are in business. Alternatively, you can declare the “global $product” inside your…

Read More Read More

How to increase the Menu items limit in WordPress

How to increase the Menu items limit in WordPress

Have you reached the max items menu/custom meta rows limit on WordPress? When you add more than a certain amount of menu items/custom meta rows do they just delete on saving? This tutorial will show you to increase this limit and explain what’s causing it.

How to Use Animated GIFs as WordPress Featured Images

How to Use Animated GIFs as WordPress Featured Images

When you upload an animated GIF to WordPress, it does all of it’s resizing magic to make the various thumbnail sizes (defaults are thumbnail, medium and large, in addition to the original full). When it does this, the resized versions lose their animation.

rawurlencode $str Returns a string in which all…

rawurlencode $str Returns a string in which all…

rawurlencode ( $str ); Returns a string in which all non-alphanumeric characters except -_.~ have been replaced with a percent (%) sign followed by two hex digits. This is the encoding described in » RFC 3986 for protecting literal characters from being interpreted as special URL delimiters, and for protecting URLs from being mangled by…

Read More Read More

How to rename your WordPress wp-content directory

How to rename your WordPress wp-content directory

If you have been working with WordPress, you probably already know that all assets like images, stylesheets, themes, and plugins in WordPress are by default, stored under the /wp-content/ directory. But, do you know that we can actually change this folder name into something else, and yet it will still work?

Inline
Inline