If there is only one search result, skip the results page and jump directly to the content 🔧
Add the following to your theme functions.php file: Source: WordPress搜索功能结果只有一个时直接跳转到结果文章页面
Add the following to your theme functions.php file: Source: WordPress搜索功能结果只有一个时直接跳转到结果文章页面
XML-RPC is a remote procedure call (RPC) protocol that uses XML to encode its calls and HTTP as a transport mechanism. It is often used by WordPress to allow remote access to the WordPress functions from external clients. Here are some examples of how XML-RPC can be used in WordPress: Enabling XML-RPC in WordPress To … Read full article →
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:
Here are a few WP-CLI tricks and tips that might be useful: Aliases Use aliases to make commands shorter and easier to remember. You can use the –alias=<alias> flag when defining a command to specify a shorter alias for the command. For example, if you use a command wp my-command: you could define a command … Read full article →
A locale is the translation language code used in WordPress that usually consists of a combination of language code and country code, combined with an underscore, for example en_AU or en_GB. Here is a complete and UPDATED List of All WordPress Language Locales 🏳️🌈 This page displays the market share (in %) for each locale (Language code) that WordPress websites are … Read full article →
Recently encountered a version of Gel4y Mini Shell that is not detectable by Imunify360 yet! Gel4y Mini Shell is a small PHP shell that has two notable features: 🔴 Compared to other PHP shells such as IDBTE4M BOT V87 Gel4y Mini Shell by Indonesian Darknet offers a lot fewer features: Source code: UPDATE: Imunify360 now … Read full article →
Here are some useful commands to clear cache from the terminal with wpcli: cdn_purge purge URLs from CDN and Varnish flush all flushes all cache related to W3TC (Page Cache, OC, DB Cache, Minify, etc.) flush page flushes pages cache only flush posts flushes both pages & posts cache flush database flushes DB cache flush … Read full article →
Information disclosure, also known as data breach is the unintentional exposure of sensitive information. This sensitive information can be anything from technical information such as plugin versions or hosting plan limits, to users information that should not be made public. Information disclosure is not a hack but allows an attacker to obtain sensitive information that … Read full article →
Back in 2010 when I was starting my web development journey, having a website was expensive, especially on a high-school student budget. I had plenty of dumb ideas, and no money to realize all of them (thank God 🙏). So I was looking for shortcuts to save on a domain name and hosting. I will … Read full article →
Recently I was migrating a website from GoDaddy shared hosting using WP-CLI and noticed the PHP version in cli was outdated. Here is how to install WP-CLI and set custom PHP version for the cli. Setup WP-CLI To download WP cli: To run it use php wp-cli.phar To make it easier to call We’ll rename … Read full article →