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
|
||||||||||||||||||||||||||||||
$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
- Source:
Returns:
The array of network ready to be used. See $dnetworks for the structure.
- Type
- array