Update ap-custom.php