WordPress Plugin Map for Feature Decisions

DataMates Studio Plugin for WordPress Plugin Map.

Infographics are a great tool for better plugin development discussions while exploring the WordPress core loading race-wars … run-now when loading active plugins versus run-later using hooks and filters.

dmsApp Files in WordPress Plugin Map

Leverage this WordPress Plugin Map to explore an overview of the WordPress 6.7.2 single site source code. From the perspective of a few primary WordPress request endpoints that load the WordPress core, through to the dmsApp plugin file hierarchy.

Download ‘WordPress Plugin Map’ PDF

Want more memory allocated during a REST API call?

Step 1: Add a WP_MAX_MEMORY_LIMIT definition in your website wp-config.php file.
Hint: Review wp_raise_memory_limit() function for further details.

define('WP_MAX_MEMORY_LIMIT', '384M');    // For 'admin', 'cron' and 'image' default memory limit.

Step 2: Add this php-block using your theme functions.php or any code-snippet plugin.
Hint: Actual runtime memory consumed is only as-needed; up to this maximum threshold.

function dmsApp_hook_wp_rest_server_class_maxMemoryLimit($wp_rest_server_class) {
    wp_raise_memory_limit('admin');     // Use 'admin' memory limit for REST API.
    return $wp_rest_server_class;
}
add_filter('wp_rest_server_class', 'dmsApp_hook_wp_rest_server_class_maxMemoryLimit', 9);

Hope this helps your WordPress plugin development adventures.

Leave a Reply

Your email address will not be published. Required fields are marked *