I’m very excited to share with you a new setting that can drastically speed up the load times of the post edit page! It is called remove_wp_meta_box, and when set to true
, it will remove the WP Custom Fields meta box (basic custom field inputs).
Although simple in it’s operation, removing this metabox (via the remove_meta_box()
function) has a profound affect on the page’s load time!
The speed boost is achieved by preventing an expensive SQL query in the WP meta_form() function that loads available custom field options in the select dropdown. If you are interested to know more about the SQL, checkout the source code. All credit must go to the very helpful Alexandre Plennevaux who notified me of this issue!
This setting will currently default to false
allowing WP to continue loading the Custom Fields metabox, however, I would like to change this default to true
in the near future. Please be sure to add the following code to your site to test it out and be sure to tweet me @wp_acf to share your thoughts!
add_filter('acf/settings/remove_wp_meta_box', '__return_true');
is_dir()
check when loading a local JSON folderload_plugin_textdomain()
logic to better mimic WP – will not load from the ‘languages’ directory first, then from the pluginz-index
CSS fix as this caused more issues than it solvedSpeed up your workflow and unlock features to better develop websites using ACF Blocks and Options Pages, with the Flexible Content, Repeater, Clone, Gallery Fields & More.