To make a UDF public, you just need to navigate to the Settings
of that UDF and click on Make public
as shown below. Similarly, you can always switch the UDF back to private mode at any time.
When making a UDF public, you do not get charged for the accesses that other users make on this UDF. You only get charged for the accesses that you make on public UDFs.