PHP code example of log1x / acf-move-wp-editor
1. Go to this page and download the library: Download log1x/acf-move-wp-editor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
log1x / acf-move-wp-editor example snippets
/**
* 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;
});