Snippet Type Admin

Export Categories and Tags

This code snippet is used to export WordPress categories and tags into a CSV file and adds a page in the WordPress admin area to run this export function. It also enqueues a JavaScript file that could add additional functionality…

View Snippet

Disable Posts Post Type

This WordPress code snippet is useful if you want to disable the “Posts” post type in the WordPress admin. This could be handy in situations where you’re using WordPress as a CMS for a site that doesn’t require blog posts,…

View Snippet

Remove Gutenberg Block CSS

This WordPress code snippet is useful for those who don’t want to use the default Gutenberg block CSS on the frontend of their website. Gutenberg, the new block editor for WordPress, enqueues its own CSS styles for blocks. These styles…

View Snippet

Duplicate Posts and Pages

This WordPress code snippet provides a quick and easy way to duplicate or clone existing posts and pages on your WordPress site. This can be useful if you frequently need to create posts or pages with similar structure or content,…

View Snippet

Set a Minimum Word Count for Posts

This WordPress code snippet sets a minimum word count for posts on your website, preventing users from publishing posts that don’t meet this minimum requirement. This is useful for blogs, news sites, or any type of website that values longer,…

View Snippet

Disable Gutenberg Code Editing for Non-Admin Users

This WordPress code snippet disables the Gutenberg code editing feature for non-admin users. Gutenberg is the default WordPress block editor introduced in WordPress 5.0. While it provides a great user experience, there are situations where you may not want all…

View Snippet