Custom filter - action filter

i want to create action filter a cutom filter . how to create ?.