You appear to be a bot. Output may be restricted
Description
Gets the current post ID.
Usage
$int = WPSEO_Primary_Term_Admin::get_current_id();
Parameters
Returns
int The post ID.
Source
File name: wordpress-seo/admin/class-primary-term-admin.php
Lines:
1 to 8 of 8
protected function get_current_id() { $post_id = filter_input( INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT ); if ( empty( $post_id ) && isset( $GLOBALS['post_ID'] ) ) { $post_id = filter_var( $GLOBALS['post_ID'], FILTER_SANITIZE_NUMBER_INT ); } return $post_id; }