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 118

Dependents: 0

Suggesters: 0

Security: 0

Stars: 34

Watchers: 3

Forks: 4

Type:wordpress-plugin

v1.0.1 2018-09-28 07:35 UTC

This package is auto-updated.

Last update: 2024-03-20 21:28:45 UTC


README

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