Created
November 11, 2022 23:53
-
-
Save contemplate/e69abfadcee9bc2eea6729ac80f4163b to your computer and use it in GitHub Desktop.
MyBookTable get_user performance enhancement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php foreach( get_users( array( 'role__in' => array( 'administrator', 'editor', 'author', 'contributor' ) ) ) as $author) { ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FILE: mybooktable/includes/metaboxes.php
Replace line 140:
<?php foreach( get_users( ) as $author) { ?>
Then Line 32
Add the following line to the function: mbt_add_metaboxes()
add_filter( ‘update_user_metadata_cache’, ‘__return_false’ );