Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
pum_typenow()
Gets the current admin screen post type.
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Return Return
(bool|string)
Source Source
File: includes/functions/admin/general.php
function pum_typenow() { if ( ! empty ( $GLOBALS['typenow'] ) ) { return $GLOBALS['typenow']; } // when editing pages, $typenow isn't set until later! // try to pick it up from the query string if ( ! empty( $_GET['post_type'] ) ) { return sanitize_text_field( $_GET['post_type'] ); } elseif ( ! empty( $_GET['post'] ) && $_GET['post'] > 0 ) { $post = get_post( $_GET['post'] ); } elseif ( ! empty( $_POST['post_ID'] ) && $_POST['post_ID'] > 0 ) { $post = get_post( $_POST['post_ID'] ); } return isset( $post ) && is_object( $post ) && $post->ID > 0 ? $post->post_type : false; }
Expand full source code Collapse full source code View on Trac