Filter: jsps_get_displayable_networks

apply_filters( 'jsps_get_displayable_networks', $dnetworks, $networks, $order ) → {array}
Gets an ordered list of networks. This filter comes at the end of the aponymous function that insures the backward compatibility with options (before 2.0.0), merges the users options and orders the networks regarding the user's preferences.

Parameters:

Name Type Description
$dnetworks array The merges and ordered array of networks.

Properties

Name Type Description
$dnetworks['slug'] array An array of data for the slug network.

Properties

Name Type Description
$dnetworks['slug']['name'] string The name of the network.
$dnetworks['slug']['visible'] int Is the network visible at plugin install? (1 for yes, 0 for no)
$dnetworks['slug']['api_url'] string The API URL for custom (not core) network.
$dnetworks['slug']['icon'] string An URL to a SVG file, or a classname.
$dnetworks['slug']['title'] string The text for the link tooltip (title attribute)
$dnetworks['slug']['color'] string The main color of this network (color valid value)
$dnetworks['slug']['hcolor'] string The :hover color of this network (color valid value)
$networks array The array of networks before cleaning up.
$order array A simple array of the network slugs (e.i array('weibo', 'twitter')) in the order decided by the user.
Since:
  • 2.0.0 First version
Author:
Source:

Returns:

The array of network ready to be used. See $dnetworks for the structure.
Type
array