Skip to content

Filters

jprieton edited this page Nov 28, 2019 · 3 revisions

Filters

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', $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