gdcpt_custom_field_function

gdcpt_custom_field_function

File name: formsmetaeditor.php

Parameters
  • $custom_functions_list: list of function used to get data for a select field.

List of functions has function name as a key and value is function label or description.

Example

[php]function add_my_function($functions) {
$functions["name_of_my_function"] = "Title to display";
return $functions;
}
add_filter("gdcpt_custom_field_function", "add_my_function");

function name_of_my_function() {
return array("First Value", "Second Value", "Third Value");
}[/php]

Comments

Leave a Reply