BuddyDev

Documentation

Customizations:-

Change the slug:-

Please put the following line in your bp-custom.php

[sourcecode language="php"]

define("BP_YT_SLUG","your-slug");

[/sourcecode]

Disable Bp-Youtube Feed For Users

Please put the following code in your functions.php or bp-custom.php

[sourcecode language="php"]

add_filter("bp_yt_is_enabled_for_members","disable_yt_for_members");

function disable_yt_for_members(){

return false;// default:true which enables the members YouTube Feed By default.

}

[/sourcecode]

Enabling The Youtube feed for Groups:-

By default, the plugin is disabled for group, you can enable it by adding the following line of code to your bp-custom.php or the functions.php

[sourcecode language="php"]

add_filter("bp_yt_is_enabled_for_groups","enable_yt_for_groups");

function enable_yt_for_groups(){

return true;//return false for disabling

}

[/sourcecode]

Localization:

You can generate an mo file from the po file included with the plugin. Move your mo file to bp-youtube-feed/languages directory and rename the file to bp-yt_YourLocal.mo