PHP Класс Sharing_Service, jetpack

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$default_sharing_label

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

public __construct ( )

delete_service() публичный Метод

public delete_service ( $service_id )

get_all_services() публичный Метод

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

get_all_services_blog() публичный Метод

Gets a generic list of all services, without any config

get_blog_services() публичный Метод

public get_blog_services ( )

get_global_options() публичный Метод

public get_global_options ( )

get_posts_total() публичный Метод

public get_posts_total ( )

get_service() публичный Метод

public get_service ( $service_name )

get_services_total() публичный Метод

public get_services_total ( $post_id = false )

get_total() публичный Метод

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

new_service() публичный Метод

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

set_blog_services() публичный Метод

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

set_global_options() публичный Метод

public set_global_options ( $data )

set_service() публичный Метод

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

Описание свойств

$default_sharing_label публичное свойство

public $default_sharing_label