WooCommerce archives (shop, categories, and tag pages) don’t display short descriptions by default. If you want this feature, customize your theme by adding this line of code.
While working in the "trenches" of software development, I create and discover awesome stuff on a daily basis, but there's hardly ever enough time to properly articulate and present my findings in full blog post format. So I often end up with hundreds of draft articles - most of which never get published at all. I created this category as a place to quickly dump such code snippets and "draft" ideas in their raw (or almost raw) format.
WooCommerce products don’t have authors because the plugin developers think this is irrelevant. But a site may need this feature sometimes. The code snippet shared here helps bring back the feature to allow author assignment in the product edit area.
MailPoet comes with a “subscribe in comments” option that allows visitors who comment on a post to subscribe to your list via a checkbox. But this box is unchecked by default. With this jQuery snippet, you can have the box auto-checked on page load.
By default JetPack adds a nofollow attribute to all links in the related posts section. You can use this PHP code snippet to remove/disable this nofollow attribute.
The developers of the JetPack WordPress plugin decided to put a layer above the featured image thumbnails of “related posts”. This gives the images a faded look which you may not like. The CSS snippet shared here will help you disable this feature.
Two PowerShell code snippets for getting a list of SharePoint users in a website. Just supply the absolute URL of the site collection. The second script also checks and prints out the users’ permissions on a specified SharePoint list.