BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Mediapress Bulk Uploads again… #32930

    Hello Nik,

    There is no such thing like ‘mpp_media_publish’. But you can filter action using filter like the following way.

    
    add_filter( 'mpp_format_activity_action_media_upload', function ( $action, $activity, $media_id, $media_ids ) {
    	$activity_type = mpp_activity_get_activity_type( $activity->id );
    
    	if ( 'media_publish' === $activity_type ) {
    
    		$media_count = count( $media_ids );
    		$media_id    = current( $media_ids );
    
    		$gallery_id = mpp_activity_get_gallery_id( $activity->id );
    		$gallery    = mpp_get_gallery( $gallery_id );
    
    		$userlink = mpp_get_user_link( $activity->user_id );
    
    		$gallery_url = mpp_get_gallery_permalink( $gallery );
    		$gallery_link = '<a href="' . esc_url( $gallery_url ) . '" title="' . esc_attr( $gallery->title ) . '">' . mpp_get_gallery_title( $gallery ) . '</a>';
    
    		$type = $gallery->type;
    
    		$type = _n( strtolower( mpp_get_type_singular_name( $type ) ), strtolower( mpp_get_type_plural_name( $type ) ), $media_count ); // photo vs photos etc.
    
    		$action = sprintf( __( '%s added %d new %s to %s', 'mediapress' ), $userlink, $media_count, $type, $gallery_link );
    
    		// allow modules to filter the action and change the message.
    		$action = apply_filters( 'mpp_activity_action_media_publish', $action, $activity, $media_id, $media_ids, $gallery );
    	}
    
    	return $action;
    }, 10, 4 );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: admin-ajax.php loads in 3.5 seconds+ #32927

    Hello Vivek,

    Thank you for the posting. There are some plugins or themes that perform some extra functionality using WordPress heartbeat API. Please try to disable plugins and switch to default theme temporarily and check if the issue still persists. If no, Please activate plugin one by one and check which one using heartbeat API and slowing down ajax.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Mediapress Bulk Uploads again… #32926

    Hello Nik,

    I will look into it and will update you soon.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Mediapress Bulk Uploads again… #32923

    Hello Nik,

    Thank you for your kind words. I am glad that I could assists.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Mediapress Bulk Uploads again… #32921

    Hello Nik,

    Try the following way. It might help you.

    
    add_action( 'mpp_enqueue_scripts', function () {
        $publish_link = sprintf( '<a href="#">%s</a>', __( 'Publish' ) );
    
    	wp_add_inline_script(
    		'mpp_uploader',
    		"jQuery(document).on( 'mpp:uploader:upload:complete', function( self, up, files ) {
    			    jQuery('div#mpp-uploaded-media-list-gallery').append('" . $publish_link .  "');
    		} );"
    	);
    }, 11 );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Mediapress Bulk Uploads again… #32918

    Hello Nik,

    Thank you for posting. There is no hook available after collection of files have been uploaded. But in js there is a trigger available after collection complete. Please check if it can help you.

    https://github.com/buddydev/mediapress/blob/master/assets/js/uploader.js#L259

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Sri,

    Thank you for posting. I have checked and it is working for me. Please check after remove cache.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: ENABLING 'FOLLOW FEATURE' CAUSES ERROR #32899

    Hello Sri,

    Sorry for the inconvenience. Error log link mentioned above does not make a clear bug. Please try the following link to get a more clear view of the bug.

    https://wordpress.org/support/article/debugging-in-wordpress/

    Please let me know what error log you are getting.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Restrict Email Domains – Limit to only one signup form? #32781

    Hello David,

    Thank you for posting. Please let me know from which registration form you want to bypass this restriction. Also, Is a normal WordPress registration or coming from any specific plugin like BuddyPress, WooCommerce etc.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: #32764

    Hello Howard,

    You can use any plugin for WordPress. It will work with MediaPress.

    Regards
    Ravi