Method |
Description |
|
__construct ( ) |
|
|
action_init ( ) |
|
|
add_like_count_column ( array $columns ) : array |
Add a "Likes" column header to the post edit table in wp-admin. |
|
add_likes_to_sharing_meta_box_title ( ) |
Replaces the "Sharing" title for the post screen metabox with "Likes and Shares" |
|
add_meta_box ( ) |
Adds a metabox to the post screen if the sharing one doesn't currently exist. |
|
admin_bar_likes ( ) |
|
|
admin_discussion_likes_settings_field ( ) |
|
|
admin_discussion_likes_settings_init ( ) |
Options to be added to the discussion page (see also admin_settings_init, etc below for Sharing settings page) |
|
admin_discussion_likes_settings_section ( ) |
|
|
admin_discussion_likes_settings_validate ( $input ) |
|
|
admin_init ( ) |
|
|
admin_likes_get_option ( $option ) |
|
|
admin_settings_callback ( ) |
Saves the setting in the database, bumps a stat on WordPress.com |
|
admin_settings_init ( ) |
The actual options block to be inserted into the sharing page. |
|
admin_settings_showbuttonon_callback ( ) |
If sharedaddy is not loaded, we still need to save the the settings of the "Show buttons on" option. |
|
admin_settings_showbuttonon_init ( ) |
If sharedaddy is not loaded, we don't have the "Show buttons on" yet, so we need to add that since it affects likes too. |
|
comment_likes ( $content, $comment = null ) |
|
|
configuration_redirect ( ) |
Redirects to the likes section of the sharing page. |
|
configuration_target_area ( string $html = '' ) : string |
Adds in the jetpack-targetable class so when we visit sharing#likes our like settings get highlighted by a yellow box |
|
delete_social_notifications_like ( ) : null |
Delete the social_notifications_like option that was set to on on module activation. |
|
enable_comment_likes ( $blog_id ) |
Force comment likes on for a blog
Used when a new blog is created |
|
enqueue_admin_scripts ( ) |
Load the JS required for loading the like counts. |
|
get_options ( ) : array |
Get the 'disabled_likes' option from the DB of the current blog. |
|
init ( ) |
|
|
is_admin_bar_button_visible ( ) |
|
|
is_attachment_enabled ( ) : boolean |
Are Media Likes enabled on single pages? |
|
is_comments_enabled ( ) : boolean |
Returns if comment likes are enabled. Defaults to 'off' |
|
is_enabled_sitewide ( ) : boolean |
Returns the current state of the "WordPress.com Likes are" option. |
|
is_index_enabled ( ) : boolean |
Are Post Likes enabled on archive/front/search pages? |
|
is_likes_visible ( ) |
Are likes visible in this context? |
|
is_post_likeable ( integer $post_id ) |
Are likes enabled for this post? |
|
is_single_page_enabled ( ) : boolean |
Are Post Likes enabled on single pages? |
|
is_single_post_enabled ( String $post_type = 'post' ) : boolean |
Are Post Likes enabled on single posts? |
|
likes_edit_column ( string $column_name, integer $post_id ) |
Add "Likes" column data to the post edit table in wp-admin. |
|
likes_master ( ) |
This function needs to get loaded after the scripts get added to the page. |
|
load_admin_css ( ) |
Load the CSS needed for the wp-admin area. |
|
load_jp_css ( ) |
Loads Jetpack's CSS on the sharing page so we can use .jetpack-targetable |
|
load_styles_register_scripts ( ) : null |
Load scripts and styles for front end. |
|
meta_box_content ( $post ) |
Shows the likes option in the post screen metabox. |
|
meta_box_save ( $post_id ) |
|
|
post_flair_service_enabled_like ( $classes ) |
|
|
post_likes ( $content ) |
|
|
process_update_requests_if_sharedaddy_not_loaded ( ) |
Adds the admin update hook so we can save settings even if Sharedaddy is not enabled. |
|
reblogs_enabled_sitewide ( ) : boolean |
Returns the current state of the "WordPress.com Reblogs are" option. |
|
register_scripts ( ) |
Register scripts |
|
set_social_notifications_like ( ) : null |
Set the social_notifications_like option to on when the Likes module is activated. |
|
sharing_block ( ) |
Returns just the "sharing buttons" w/ like option block, so it can be inserted into different sharing page contexts |
|
sharing_menu ( ) |
Adds the 'sharing' menu to the settings menu. |
|
sharing_meta_box_content ( $post ) |
WordPress.com: Metabox option for sharing (sharedaddy will handle this on the JP blog) |
|
sharing_page ( ) |
Provides a sharing page with the sharing_global_options hook
so we can display the setting. |
|
updated_message ( ) |
Returns the settings have been saved message. |
|