'WooCommerce Addons Page' ) ); if ( ! is_wp_error( $addons_json ) ) { $addons = json_decode( wp_remote_retrieve_body( $addons_json ) ); if ( $addons ) { set_transient( 'woocommerce_addons_data', $addons ); } } } $view = isset( $_GET['view'] ) ? sanitize_text_field( $_GET['view'] ) : ''; include_once( 'views/html-admin-page-addons.php' ); } } endif; return new WC_Admin_Addons();