25 pre-made code snippets.
Tester & Verified by our team.
To make your life easier we have crafted for you code snippets that you can import with one click.
You can test them by click import
Once imported they will be shown in the code block list same as any other that you have crated manually.
Code Snippets list:
Here is the content you provided converted into a table format:
Snippet Name | Description | Tags |
---|---|---|
Admin Bar Tricks | No description available | Admin |
Disable the Emoji | If you are not using Emojis on your website front-end, you should disable it site-wide so that you can have less HTML requests. | WordPress |
Change WordPress default excerpt […] | When using Excerpts in WordPress, you see the three dots ( … ) at the end by default, sometimes we need to describe more of this, then you can use this function to modify it. | Content |
Change WordPress default excerpt length | By default, WP uses the first 55 words of the content for Excerpt. Sometimes we need to change the length according to client needs or design. Use this and change ’15’ to your need in the return function. | Content |
Add a Suffix or Prefix to Woo Product Prices | Sometimes you may need to add a suffix or prefix to your WooCommerce product prices, and if you’d like to know how to accomplish that, see these two code snippets. | WooCommerce |
Simple Maintenance Mode | A quick method of WordPress Maintenance Mode. If you are into SEO or already ranking in search engines, then we suggest using a Maintenance mode plugin instead because they handle the SEO aspects better… | Development |
Change the text of related products section title | No description available | WooCommerce |
Disable Automatic Updates for WordPress | Sometimes WordPress updates break working websites, and we usually don’t notice the issue until reported by someone. This snippet disables the automatic-updates for those cases. | WordPress |
Disable Gutenberg editor for Widgets | Don’t like the Gutenberg when using Widgets area? This snippet is here to rescue… | Gutenberg |
Disable Comments | If you don’t have a blog where you want to have comments from readers, then you should disable the comments to speed up the website a little bit… | WordPress |
Remove Prefix From Archive Titles | Don’t like the prefix on archives (i.e., Category:, Product Category:, etc.)? This snippet will remove the prefix and just display the Archive Title. | Content |
Custom Password Protected Message | No description available | Security |
Disable Plugin & Theme Editing from WordPress | When you want to secure the theme & plugin modification from the client or misuse by anyone, this snippet disables the Theme Editor & Plugin Editor to secure it. | Security |
Remove the Gutenberg Block Library CSS | If you don’t want to use Gutenberg anywhere, you don’t need the default loaded CSS for it on the frontend. This snippet will remove it and lower the HTTP requests. | Gutenberg |
Add ID column in admin area for all posts types | Although we can easily see the IDs by hovering the title in WP admin area, sometimes we need to see it in bulk. This snippet will add an admin column for the ID attribute. | Development |
Change Add to Cart button text | Sometimes users want to change the default ‘Add to Cart’ text to something else. This snippet is here to do that easily. | WooCommerce |
Add product category class to body | This snippet will add a class to the body element for the current product category. It will add like (product_cat_…..) where ‘…..’ will be the slug of the category. | WooCommerce |
Disable Gutenberg for specific post types only | No description available | Gutenberg |
Allow SVG Uploads for Admins | No description available | Media |
Current Year Shortcode | This will add a shortcode named [current_year] for you to add the current year dynamically anywhere possible. | Content |
Disable XML RPC | To ensure your site remains secure, it’s a good idea to disable xmlrpc.php entirely. | Security |
Disable Emails for Automatic Updates | If you want to keep the automatic updates enabled, but don’t want to receive an email on each update, then this snippet is for you. | WordPress |
Lowercase filenames for upload files | Sometimes clients upload files with title case or capital case names. This snippet will make sure that on upload they are all converted to lowercase. | Media |
Disable WordPress Lazy Load | No description available | Media |
Cleanup WordPress header | This will clean up tags from WordPress stuff like its version, shortlinks, etc. | WordPress |