You appear to be a bot. Output may be restricted
Description
Render post content partial.
Usage
$string|false = Test_WP_Customize_Partial::render_post_content_partial( $partial );
Parameters
- $partial
- ( WP_Customize_Partial ) required – Partial.
Returns
string|false Content or false if error.
Source
File name: wordpress-develop-tests/phpunit/tests/customize/partial.php
Lines:
1 to 13 of 13
function render_post_content_partial( $partial ) { $id_data = $partial->id_data(); $post_id = intval( $id_data['keys'][0] ); if ( empty( $post_id ) ) { return false; } $post = get_post( $post_id ); if ( ! $post ) { return false; } return apply_filters( 'the_content', $post->post_content ); }