Link field filter


I want to know how frappe deals with filters of link fields, especially items in purchase order
It has filters as “Is purchase =1”
I want to understand how it works in frappe, and especially in purchase order

Many thanks,

They can be added via Javascript like i explained here: Set specific values in a field type Link - #2 by Nahuel_Nso