create wpcli aliases - Create WP-CLI Aliases

Create WP-CLI Aliases

IF you use the same commands often you can save them as aliases so that you have them always available. For example, the following commands will check if WP core, installed plugins and themes have updates available: You can combine the commands into a one-liner: and you can create an alias for this command: so … Read full article →

gutenberg list all blocks - List all WordPress Blocks in the Editor

List all WordPress Blocks in the Editor

WordPress.com has a list of all the blocks that are available inside the Gutenberg editor, and for self-hosted WordPress websites you can run the following command in the browser console when using the editor to get a list of all available blocks. The output:

Show Last Updated date for Posts - Show Last Updated date 📅 for Posts

Show Last Updated date 📅 for Posts

Here is a simple code snippet that you can add to your theme functions.php file to show the “last updated” date in your posts. A new line will be added to the beginning of the post content if the last modified and published time is different:

display a list of wordpress core files anywhere on your website - Display List of all WordPress core files

Display List of all WordPress core files

Here is an example of a simple WordPress plugin that uses a shortcode to display a list of files from the WordPress repository on GitHub: <?php /* Plugin Name: List WordPress Core Files Description: Displays a list of files from the WordPress repository on GitHub. */ function wpfl_shortcode_handler( $atts ) { // Parse shortcode attributes … Read full article →

Missing a temporary folder - Hot to fix error: Missing a temporary folder. ✔️

Hot to fix error: Missing a temporary folder. ✔️

Missing a temporary folder. WordPress error can be caused for multiple reasons: How to fix this error: 1. Enable required extensions Check if required extensions are enabled in Tools > Site Health: If they are not, enable them from cPanel > PHP Selector 2. Check wp-config.php for WP_TEMP_DIR Check if a custom path for file … Read full article →

phpinfo WordPress Shortcode - phpinfo() WordPress Shortcode

phpinfo() WordPress Shortcode

Here is an example of a simple WordPress plugin that uses the [phpinfo] shortcode to display PHP information similar to what the phpinfo() function does: <?php /* Plugin Name: PHP Info Shortcode Description: Displays PHP information using the [phpinfo] shortcode. */ function phpinfo_shortcode_handler( $atts ) { // Build the HTML for the data $html = … Read full article →