Add filter to preview post value.
Source
public function preview() {
if ( $this->is_previewed ) {
return false;
}
$this->is_previewed = true;
add_filter( 'wp_get_custom_css', array( $this, 'filter_previewed_wp_get_custom_css' ), 9, 2 );
return true;
}
Changelog
Version | Description |
---|---|
4.7.9 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.