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

get_cur_post_type_fn()

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

Location

This function can be found here: