A function provided by the user of a program or an environment most often for spreadsheet type applications or database applications. Use [custom-functions-excel] for Excel and [custom-function] for Google sheets. Specify a programming language tag as well: [google-apps-script], [javascript], [sql], [tsql], etc. as well as a tag for the application: [excel], [google-spreadsheet], [sql-server] etc.
In the context of a programming language or an environment, a User Defined Function (UDF) is a function that is created by a user to perform a specific task (as opposed to a function that is intrinsic to the environment, built into the programming language or environment).
Spreadsheet applications like Excel and Google Sheets calls these "custom functions".
Microsoft also uses the term User Defined Functions with sql-server. The tsql tag may also be applicable. See What is the need for user-defined functions in SQL Server?
Use:
- custom-functions-excel for UDF wrote in javascript for excel
- custom-function for UDF wrote in google-apps-script/javascript for google-spreadsheet