Advertisement
fauzanjeg

JNEWS || Disable Preview on Customizer

Jul 27th, 2022
1,135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. /** Disable Preview on Customizer */
  2. function jnews_disable_preview_on_customizer() {
  3.     die( 'The customizer is disabled. Please save and preview your site on the frontend.' );
  4. }
  5. add_action( 'customize_preview_init', 'jnews_disable_preview_on_customizer', 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement