PHP Class Sharing_Service, jetpack

Mostra file Open project: automattic/jetpack Class Usage Examples

Public Properties

Property Type Description
$default_sharing_label

Public Methods

Method Description
__construct ( )
delete_service ( $service_id )
get_all_services ( $include_custom = true ) Gets a list of all available service names and classes
get_all_services_blog ( ) Gets a generic list of all services, without any config
get_blog_services ( )
get_global_options ( )
get_posts_total ( )
get_service ( $service_name )
get_services_total ( $post_id = false )
get_total ( $service_name = false, $post_id = false, $_blog_id = false ) Soon to come to a .org plugin near you!
new_service ( $label, $url, $icon )
set_blog_services ( array $visible, array $hidden )
set_global_options ( $data )
set_service ( $id, Sharing_Source $service )

Method Details

__construct() public method

public __construct ( )

delete_service() public method

public delete_service ( $service_id )

get_all_services() public method

Gets a list of all available service names and classes
public get_all_services ( $include_custom = true )

get_all_services_blog() public method

Gets a generic list of all services, without any config

get_blog_services() public method

public get_blog_services ( )

get_global_options() public method

public get_global_options ( )

get_posts_total() public method

public get_posts_total ( )

get_service() public method

public get_service ( $service_name )

get_services_total() public method

public get_services_total ( $post_id = false )

get_total() public method

Soon to come to a .org plugin near you!
public get_total ( $service_name = false, $post_id = false, $_blog_id = false )

new_service() public method

public new_service ( $label, $url, $icon )

set_blog_services() public method

public set_blog_services ( array $visible, array $hidden )
$visible array
$hidden array

set_global_options() public method

public set_global_options ( $data )

set_service() public method

public set_service ( $id, Sharing_Source $service )
$service Sharing_Source

Property Details

$default_sharing_label public_oe property

public $default_sharing_label