01/13/2017 at 9:35 am
#406663
Keymaster
@ James
Install Code Snippets, copy past the example code and change that one word ( cn_email_options to cn_link_options. Save and Activate the snippet.
As is the code will add two new links types, “primary” and Secondary”.
You can change those to suit or add more or add just one. For example:
function cn_my_new_link_types( $options ) {
$options['codemail'] = 'Code Mail';
return $options;
}
add_filter( ‘cn_link_options’, ‘cn_my_new_link_types’ );
This will add a single new option which you can import into, or, add manually when you add/edit an entry.
There is no other code to change or edit.
Hope that helps clear it up.
