ap_get_post_field( string $field, mixed $_post = null )
Description #
Get a specific post field.
Parameters #
- $fieldstring (Required) Post field name.
- $_postmixed (Optional) Post ID, Object or null. Default value: null
Source #
File: includes/qameta.php
function ap_get_post_field( $field, $_post = null ) { $_post = ap_get_post( $_post ); if ( isset( $_post->$field ) ) { // Serialize if fields column. if ( 'fields' === $field ) { return maybe_unserialize( $_post->$field ); } return $_post->$field; } return ''; }
Expand full source code Collapse full source code View on GitHub: includes/qameta.php:612
Add your comment