Skip to content

Filters

jprieton edited this page Nov 29, 2019 · 3 revisions

Important: This documentation is still under construction, some filters may be missing or not fully documented

jpwp_toolkit_social_network_links

Filters the array of list of social network links that can be edited in the Social page of the Settings section in the WordPress admin.

apply_filter('jpwp_toolkit_social_network_links', array $networks );

$networks (array)
The keyword => label array of social networks.

return (array)
The updated social network array

The following example the code adds the GitHub field.

function add_github_link($networks) {
  $networks['github'] = 'GitHub';
  return $networks;
}

add_filter('jpwp_toolkit_social_network_links', 'add_github_link');

Clone this wiki locally