Disabling the customizer
-
Hi there,
I can’t disable the customizer for AMP. Documentation on github says:
add_filter( ‘amp_customizer_is_enabled’, ‘__return_false’ );
Note that this needs to be called before the after_setup_theme hook to work.
I tried several hooks (muplugins_loaded, init, after_setup_theme with highest priority), placing the filter at first in functions.php but the Menu-Entry “Appearance > AMP” ist still visible.
Thanks in advance
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Disabling the customizer’ is closed to new replies.