WordPress posts by default have an excerpt meta box where you can manually type in a custom excerpt. Pages don’t have this feature out-of-the-box. If you would like to enable excerpts on your WordPress pages, use the code in this post.
Since PowerShell is now open source and cross-platform, we can now perform PowerShell magic right inside Linux boxes. If this isn’t exciting, what is?! Here’s an example of how to execute PowerShell scripts (or commands) from PHP code on a Linux VM.
Locked out of your WordPress website? No worries. This article explains how a server administrator can either force reset a user’s WordPress password or create a new WordPress admin user with a brand new password. Database and FTP methods are described.
An SQL SELECT statement may often return thousands of rows. And when building sites, we usually don’t want to dump all those rows onto a single page (for speed and UX reasons). Instead, we split the results across multiple pages via PAGINATION.
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.
By default, WordPress doesn’t come with suspicious login notifications and two factor authentication. We use plugins (or custom code) for these things. This piece of code notifies you when a user logs in to your site. Good for websites with few users.