WordPress cron save post with unfiltered html content

Mihai Irodiu
Editorial team
Date
March 17, 2017

This applies for method “wp_insert_post” used inside a WordPress Cron. By default WordPress checks if the user has the capability to save unfiltered HTML content if ( ! current_user_can( ‘unfiltered_html’ ) ) { which WP CRON doesn’t have.

Hire Expert WordPress Developers

Looking to customize or develop a new website?

Looking to customize or develop a new website?

Hire Expert WordPress Developers