1. Home
  2. Docs
  3. Function Reference
  4. Functions
  5. get_cur_post_type()

get_cur_post_type()

Gets the current post type in the WordPress Admin.

Copy to Clipboard

Parameters

This function has no parameters.

Return

mixed

The current post type

Example

In your function inside a class extending MVC_Admin_General:

Copy to Clipboard
Tags