Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/log1x/acf-move-wp-editor
This is a simple ACF Field that moves the WordPress content editor of a post or page to the location of this field.
https://github.com/log1x/acf-move-wp-editor
acf acf-field wordpress wordpress-plugin
Last synced: 6 days ago
JSON representation
This is a simple ACF Field that moves the WordPress content editor of a post or page to the location of this field.
- Host: GitHub
- URL: https://github.com/log1x/acf-move-wp-editor
- Owner: Log1x
- Created: 2017-09-13T22:20:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-02T10:54:29.000Z (over 2 years ago)
- Last Synced: 2024-10-29T20:02:26.409Z (16 days ago)
- Topics: acf, acf-field, wordpress, wordpress-plugin
- Language: PHP
- Size: 72.3 KB
- Stars: 34
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ACF Move WP Editor
[![Packagist](https://img.shields.io/packagist/v/log1x/acf-move-wp-editor.svg?style=flat-square)](https://packagist.org/packages/log1x/acf-move-wp-editor)
[![Packagist Downloads](https://img.shields.io/packagist/dt/log1x/acf-move-wp-editor.svg?style=flat-square)](https://packagist.org/packages/log1x/acf-move-wp-editor)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](https://log1x.com/screenshots/2017-09-13_17-16-47_QrdD0.png)
## 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.```php
/**
* 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;
});
```