Definition:
function get_post_to_edit( $id ) {}
Get an existing post and format it for editing.
Parameters
- unknown_type $id
Source code
function get_post_to_edit( $id ) { $post = get_post( $id, OBJECT, 'edit' ); if ( $post->post_type == 'page' ) $post->page_template = get_post_meta( $id, '_wp_page_template', true ); return $post; }
1621
No comments yet... Be the first to leave a reply!