Bill Kellaway
Forum Replies Created
-
Version 2.8.0 broke my admin-ajax.php
domain/p-admin/admin-ajax.php?action=gppa_get_batch_field_html returns a 403 error. I have narrowed down to UM 2.8
Help !
Forum: Developing with WordPress
In reply to: Problems with WP 6.1.1 and the get_user_meta() function- This reply was modified 1 year, 11 months ago by Bill Kellaway.
Forum: Plugins
In reply to: [Paystack MemberPress] Invalid Amount SentHave you tried changing the currency type ?
Forum: Plugins
In reply to: [Paystack MemberPress] Invalid Amount SentI had the same issue and in Memberpress settings I went unchecked
Memberpress Settings | General | Disable Rewrite RulesThis seemed to work for me.
thanks @reneesoffice Reset Site Kit worked !!!
I’ve been getting the same message on a number of my sites. Glad to see you’re on it !
- This reply was modified 4 years, 5 months ago by Bill Kellaway.
Forum: Hacks
In reply to: Wildcard Subdomain – Override get_site_url()Okay I figured this out. My whole approach was flawed. I was assuming by overriding the get_site_url() this domain would be passed to the menus. Wrong. The solution was to change the menu directly. So instead of using the set_site_subdomain() function I created a new function that updated the menu links directly.
Here is the codeL
/* Keep the Subdomain the same in the menus */ function change_menu($items){ $server_name = $_SERVER['SERVER_NAME'] ; $host = explode('.', $server_name ); $this_subdomain = $host[0]; $site_url_array = explode(".", get_site_url() ) ; $new_url = "https://".$this_subdomain.".".$site_url_array[1].".".$site_url_array[2] ; $length_new_url = strlen( $new_url ) ; foreach($items as $item){ $link = substr( $item->url, $length_new_url ) ; $item->url = $new_url . $link ; } return $items; } add_filter('wp_nav_menu_objects', 'change_menu');