Error sending array data from php to javascript

Your PHP code shows: $organizations = get_user_meta($current_user_id, ‘organizations’); The signature for this function is: get_user_meta( int $user_id, string $key = ”, bool $single = false ) Note the last argument. When you used this function, you omitted the last argument; therefore, the default was used. The default is false meaning that the value will be … Read more

Problems implementing Load More functionality

Background As an overly broad comparison of the legacy AJAX handler system and the REST API: The AJAX handler system is little more than a way to connect a request to specific PHP file to a WordPress hook callback, which leaves virtually all other implementation details up to the developer. The REST API is more … Read more