log1x / acf-move-wp-editor
A simple ACF Field that moves the WordPress content editor of a post or page to the location of this field.
Installs: 1 136
Dependents: 0
Suggesters: 0
Security: 0
Stars: 34
Watchers: 3
Forks: 3
Type:wordpress-plugin
Requires
- php: >=7
- composer/installers: ~1.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-20 23:08:06 UTC
README
This is a simple ACF Field that moves the WordPress content editor of a post or page to the location of this field.
This can be useful for cleaning up your Edit Post screen with something like ACF tabs:
Installation
Install ACF Move WP Editor using Composer:
$ composer require log1x/acf-move-wp-editor
Recommended Filters
The filters below remove the TinyMCE editor feature that expands its container to the height of the content as well as removes the option from the Help menu.
/** * Unregister the editor expand script. * * @return void */ add_action('admin_init', function () { wp_deregister_script('editor-expand'); }); /** * Disable TinyMCE's autoresize. * * @param array $init * @return array */ add_filter('tiny_mce_before_init', function ($init) { unset($init['wp_autoresize_on']); return $init; });