Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /../plugins/rm-payment.php

My guess is that you’re accessing $response as an array when it’s a \WP_Error. Check out the possible return values of wp_remote_post: (array|WP_Error) The response or WP_Error on failure. You should modify your code in a couple of ways: $response = wp_remote_post( $remote_url, $request ); if ( is_wp_error( $response ) ) { // handle the … Read more

build child and anchestor three from post parent

So i got it working, by adding a filter: i added this before the wp_list_pages add_filter( ‘get_pages’, ‘check_propper_rank’, 10, 2 ); wp_list_pages( array( ‘post_type’ => ‘wiki-term’, ) ); and then created a new filter, to removed the ones that did’nt fit the rank. function check_propper_rank( $pages, $arguments ) { $user_rank = 100; foreach ( $pages … Read more