An Apex town ordinance restricting the types of livestock within town limits went into effect Friday.