10)); // Decode the JSON response $data = json_decode(wp_remote_retrieve_body($response), true); if (isset($data['active']) && $data['active'] === 'yes'){ ?>
10 )); // Exit if error. if ( is_wp_error( $response ) ) { return; } // Get the body. $posts = json_decode( wp_remote_retrieve_body( $response ) ); // Exit if nothing is returned. if ( empty( $posts ) ) { return; } ?> modified ) ); ?> content->rendered, 25, '...' ); //phpcs:ignore ?>