Skip to content

Instantly share code, notes, and snippets.

@myselfhimself
Created January 26, 2018 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myselfhimself/2a41087e9e675be2ac9e6c35de969ef8 to your computer and use it in GitHub Desktop.
Save myselfhimself/2a41087e9e675be2ac9e6c35de969ef8 to your computer and use it in GitHub Desktop.
Programmatically enable no_autop (automatic p removal by tinymce), within tinymce_advanced Wordpress plugin
<?php
// This comes in handy for continuous deployment for Wordpress plugins and settings, here TinyMCE Advanced
// Enable no auto p removal in tinymce advanced editor plugin
$tadv_admin_settings = get_option('tadv_admin_settings');
$tadv_admin_settings['options'] = 'no_autop';
update_option('tadv_admin_settings', $tadv_admin_settings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment