in

Get Current Post Type in the WordPress Admin Area (wp-mix.com)

In WordPress, you can create posts, pages, or any custom post type. Within your theme template, you can get the current post type using the core WP function, get_post_type(). But that doesn’t work in the Admin Area. For example, my Disable Gutenberg plugin provides conditional functionality to the “Add New” and “Edit” screens based on post type. So how to get the post type in the Admin Area? Here’s one way to do it..

Leave a Reply

Caching Smartly In The Age Of Gutenberg

Caching Smartly In The Age Of Gutenberg (www.smashingmagazine.com)

The New WordPress Gutenberg Editor VS Classic Editor - Performance Breakdown - Is It As Bad As They Say?

The New WordPress Gutenberg Editor VS Classic Editor – Performance Breakdown – Is It As Bad As They Say? (www.wpkube.com)