Filter: jsps_register_custom_network
apply_filters( 'jsps_register_custom_network', $custnw ) → {array}
Filters the list of Custom Networks. It's the best way to add new networks.
Parameters:
Name |
Type |
Description |
$custnw |
array
|
The list of Custom Networks.
Properties
Name |
Type |
Description |
$custnw['slug'] |
array
|
Info of a network where slug is its shortname.
Properties
Name |
Type |
Description |
$custnw['slug']['name'] |
string
|
The visible name of your network.
|
$custnw['slug']['visible'] |
int
|
1 to make the network visible by default.
|
$custnw['slug']['api_url'] |
string
|
The API URL to make the sharing possible. Use %%url%% as placeholder for the URL to share, %%title%% and %%excerpt%% to replace short and long texts if the API allows it.
|
$custnw['slug']['icon'] |
string
|
A text free CSS class or a path to a SVG image.
|
$custnw['slug']['title'] |
string
|
The value of the title attribute of the button.
|
$custnw['slug']['color'] |
string
|
The main color value of the button.
|
$custnw['slug']['hcolor'] |
string
|
The :hover color value of the button.
|
|
|
- Since:
- Author:
-
- Source:
- Tutorials:
-
Returns:
The list of Custom Network.
-
Type
-
array
Plugin and documentation by Geoffrey Crofte - All Right Reserved