fbpx

Predefined Code Snippets for SCORG

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

screenshot 2024 08 15 at 12.06.10

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 NameDescriptionTags
Admin Bar TricksNo description availableAdmin
Disable the EmojiIf 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 lengthBy 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 PricesSometimes 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 ModeA 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 titleNo description availableWooCommerce
Disable Automatic Updates for WordPressSometimes 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 WidgetsDon’t like the Gutenberg when using Widgets area? This snippet is here to rescue…Gutenberg
Disable CommentsIf 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 TitlesDon’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 MessageNo description availableSecurity
Disable Plugin & Theme Editing from WordPressWhen 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 CSSIf 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 typesAlthough 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 textSometimes 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 bodyThis 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 onlyNo description availableGutenberg
Allow SVG Uploads for AdminsNo description availableMedia
Current Year ShortcodeThis will add a shortcode named [current_year] for you to add the current year dynamically anywhere possible.Content
Disable XML RPCTo ensure your site remains secure, it’s a good idea to disable xmlrpc.php entirely.Security
Disable Emails for Automatic UpdatesIf 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 filesSometimes 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 LoadNo description availableMedia
Cleanup WordPress headerThis will clean up tags from WordPress stuff like its version, shortlinks, etc.WordPress