Yes, you can use a hook in a function
bp_activity_add()called the same.
* Fires at the end of the execution of adding a new activity item, before returning the new activity item ID.
* @since 1.1.0
* @param array $r Array of parsed arguments for the activity item being added.
do_action( 'bp_activity_add', $r );
So you should…[Read more]
Right now I am trying to make my own custom entry.php for my activity loops. When looking at the bp-default one to get a good idea of what one should look like i ran into the following code.
<?php bp_activity_action(); ?>
Now I found this function in bp-activity-template.php in the github project, but that was not too helpful either. The file…[Read more]
Henry Wright replied to the topic urgent !!!! need a hook which is called during click og comment button urgent! in the forum How-to & Troubleshooting 1 year, 5 months ago
do we have to passed argument along with that hook…
It isn’t mandatory but you can if you want to.
$activitycan be passed to your custom function.
Marc started the topic Bug in bp_notifications_get_notifications_for_user hook or misunderstood in the forum Installing BuddyPress 1 year, 6 months ago
I’am currently try to add custom notification from a non BuddyPress component. I’m using this hooks:
and this function:
Everything works well except the hook
bp_notifications_get_notifications_for_user. My problem…[Read more]
https://www.rebelmouse.com/NetworkheadsoftheArabLiberatio/ replied to the topic GENNetworkArabeditors in the forum BuddyPress Restrict Group Creation 2 years, 10 months ago
* WordPress User Page
* Handles authentication, registering, resetting passwords, forgot password,
* and other user handling.
* @package WordPress
/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . ‘/wp-load.php’ );
// Redirect to https login if forced to use SSL
if (…[Read more]
Sorrry but could not find the line you mentioned 🙁 here is the whole bp_profile_as_homepage_fork.php file `<?php
Plugin Name: BP Profile as Homepage Fork
Description: Sets the user BP Profile as homepage on the site for logged in users. This emulates Facebook.
/* Copyright 2013 Mort3n
Add this code yo your functions.php, i was add filter to embed_maybe_make_link wp function.
It work!! but mybe there is more good solution for auto-embeding image in bp (personaly, i was search since for long time for solution, but i dont find it :p).
* Check if url is image
* <a href='https://buddypress.org/community/members/param/'…
danbpfr replied to the topic Creating large group of new users – need to turn off email notifications for all of them in the forum How-to & Troubleshooting 4 years, 6 months ago
try this in bp-custom.php
remove_filter( 'wpmu_signup_blog_notification', 'bp_core_activation_signup_blog_notification', 1, 7 );
source infos buddypress /bp-core/bp-core-filters.php
The concerned filter do this
* Replace the generated password in the welcome email.
* This will not filter when the…[Read more]
Since you asked it in another thread, here is what you need
Put this function in your functions.php or bp-custom.php
* Get Age from BuddyPress date of Birth
* <a href='https://buddypress.org/community/members/param/' rel='nofollow'>@param</a> string $dob_field_name :name of the DOB field in xprofile, like Dob or Date of Birth
The plugin is not 100% update friendly, if I disable buddypress the site crashes. Fatal error: Call to undefined function bp_core_load_template() in /data/wwwcust/sv3-132/html/wp-content/plugins/buddypress-links/bp-links-core.php on line 277 I fixed this bug for my version with if ( defined( ‘BP_VERSION’ ) ) ` /** * Use this only inside of screen…[Read more]
@param Not recently active