Execute wordpress api from included object