Skip to content

This is a simple ACF Field that moves the WordPress content editor of a post or page to the location of this field.

Notifications You must be signed in to change notification settings

Log1x/acf-move-wp-editor

Repository files navigation

ACF Move WP Editor

Packagist Packagist Downloads

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:

Example

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;
});

About

This is a simple ACF Field that moves the WordPress content editor of a post or page to the location of this field.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published