strangerstudios/paid-memberships-pro — pull request #85 by jessicaoros (2014-02-05 23:14:31+00:00)
Title: New Filter: pmpro_custom_advanced_settings

Add new custom fields to Advanced Settings with an array of options. Supports 'text','select', and 'textarea' as field_types.

Example:
function my_advanced_settings() {
$custom_fields = array(
'field1' => array(
'field_name' => 'test1',
'field_type' => 'text',
'label' => 'label1',
'description' => 'description'
) ,
'field2' => array(
'field_name' => 'tes22',
'field_type' => 'text',
'label' => 'label2',
'description' => 'another descrioption'
)
);

return $custom_fields;
}
add_filter('pmpro_custom_advanced_settings','my_advanced_settings');