Property | Type | Description | |
---|---|---|---|
$activity_types | The types of activity BuddyPress Media creates | ||
$allowed_types | allowed media types | ||
$default_privacy | default application wide privacy levels | ||
$default_sizes | default media sizes | ||
$options | |||
$posts_per_page | Number of media items to show in one view. | ||
$privacy_settings | privacy settings | ||
$render_options | |||
$support_url | Support forum url |
Method | Description | |
---|---|---|
__construct ( ) | Constructs the class Defines constants and excerpt lengths, initiates admin notices, loads and initiates the plugin, loads translations. | |
add_image_sizes ( ) | ||
admin_init ( ) | Load admin screens | |
check_global_album ( ) | ||
comment_auto_complete ( $rtmedia_options = false, $bp_media_options = false ) | add filter that is being given in the buddypress plugin which add the JS and CSS for autocomplete | |
constants ( ) | Defines all the constants if undefined. Can be overridden by defining them elsewhere, say wp-config.php | |
create_table_error_notice ( ) | ||
custom_style_for_activity_image_size ( ) | ||
custom_style_for_gallery_image_size ( ) | ||
custom_style_for_gallery_image_size_masonry ( ) | ||
custom_style_for_image_size ( ) | ||
default_count ( ) | ||
define_type_constants ( ) | ||
enqueue_scripts_styles ( ) | ||
filter_allow_mime_type_mu ( $options ) | ||
filter_image_sizes ( $sizes ) | ||
filter_image_sizes_details ( $sizes ) | ||
fix_db_collation ( ) | ||
fix_group_media_privacy ( ) | * Update media privacy of the medias having context=group update privacy of groups medias according to the privacy of the group 0->public, 20-> private/hidden | |
fix_parent_id ( ) | ||
fix_privacy ( ) | ||
get_user_link ( $user ) | ||
image_sizes ( ) | ||
init ( ) | Hooks the plugin into BuddyPress via 'bp_include' action. | |
init_buddypress_options ( ) | ||
init_site_options ( ) | ||
load_translation ( ) | Loads translations | |
media_screen ( ) | ||
plugin_get_version ( $path = null ) | ||
redirect_on_change_slug ( ) | ||
rtmedia_bp_activity_maybe_load_mentions_scripts_callback ( boolean $load_mentions, $mentions_enabled ) : boolean | Always set to true when call on any of the Buddypress Pages | |
rtmedia_custom_image_sizes_choose ( $sizes ) | ||
rtmedia_jpeg_quality ( $quality ) | ||
sanitize_allowed_types ( array $allowed_types ) : array | Sanitize all media sizes after hooking custom media types | |
set_allowed_types ( ) | Default allowed media types array | |
set_bp_bar ( ) | ||
set_default_sizes ( ) | Set the default sizes | |
set_friends_object ( ) | todo: This function should return value or pass argument | |
set_image_quality ( ) | ||
set_privacy ( ) | Set privacy options | |
set_rtmedia_meta_wpdbfix ( ) | ||
set_site_options ( ) | ||
unset_bp_media_image_sizes ( $sizes ) | ||
unset_bp_media_image_sizes_details ( $sizes ) | ||
update_db ( ) |
public comment_auto_complete ( $rtmedia_options = false, $bp_media_options = false ) |
public constants ( ) |
public custom_style_for_activity_image_size ( ) |
public custom_style_for_gallery_image_size_masonry ( ) |
public fix_group_media_privacy ( ) |
public init ( ) |
public rtmedia_bp_activity_maybe_load_mentions_scripts_callback ( boolean $load_mentions, $mentions_enabled ) : boolean | ||
$load_mentions | boolean | |
return | boolean | true |
public rtmedia_custom_image_sizes_choose ( $sizes ) |
public sanitize_allowed_types ( array $allowed_types ) : array | ||
$allowed_types | array | allowed media types after hooking custom types |
return | array | $allowed_types sanitized media types |
public set_friends_object ( ) |
public unset_bp_media_image_sizes_details ( $sizes ) |
public $activity_types |
public $posts_per_page |