BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 886

    Thanks for the feedback Ill like to proceed with this as my product setup is simple direct transactions and associated product orders only contain a single product related to the post. I set up 1 product per pricing. I dont use multiple products for the same order

    I have this example code below

     function delete_pending_post_order($post_id) {
        if (get_post_type($post_id) === 'post') {
            $order_id = get_post_meta($post_id, '_order_id', true);
    
            if ($order_id) {
                $order = wc_get_order($order_id);
    
                if ($order && in_array($order->get_status(), array('pending', 'draft'))) {
                    $order->delete(true);
                }
            }
        }
    }
    add_action('before_delete_post', 'delete_pending_post_order'); 
  • Participant
    Level: Guru
    Posts: 886
    Tosin on in reply to: [Resolved] Buddypress follow plugin and buddypress 12.0.0 #50575

    Hi Brajesh,

    Please note that this issue is now resolved as the updated follow plugin at github now works without errors with buddypress 12.0.0 beta 2

    KINDLY NOTE – The problem was caused by a specific plugin conflict with https://wordpress.org/plugins/mark-new-posts/ Its quite strange but immediately I deactivated Mark New Post plugin there was no more error with the buddypress follow plugin

    Thanks

  • Participant
    Level: Guru
    Posts: 886
    Tosin on in reply to: [Resolved] Buddypress follow plugin and buddypress 12.0.0 #50548
    This reply has been marked as private.
  • Participant
    Level: Guru
    Posts: 886
    Tosin on in reply to: [Resolved] Buddypress follow plugin and buddypress 12.0.0 #50547
    This reply has been marked as private.
  • Participant
    Level: Guru
    Posts: 886
    Tosin on in reply to: [Resolved] Buddypress follow plugin and buddypress 12.0.0 #50525

    Ill keep you updated on further updates from imath

  • Participant
    Level: Guru
    Posts: 886
    Tosin on in reply to: [Resolved] Buddypress follow plugin and buddypress 12.0.0 #50524
    This reply has been marked as private.
  • Participant
    Level: Guru
    Posts: 886
    Tosin on in reply to: [Resolved] pay per post button display #50357

    Thanks Ravi

    There was a typo error but this worked

     <?php if ( is_user_logged_in() && is_singular( 'post' ) ) : ?>
    	<div id="call-to-action" class="promote-action-btn">
    		<?php
    		$post_id = get_the_ID();
    		$label   = esc_html( '+ 10X Views - Promote Your Post ₦' );
    
    		echo do_shortcode( "[bblpro_ppp_promote post_id={$post_id} label='{$label}']" );
    		?>
    	</div>
    <?php endif; ?>
     
  • Participant
    Level: Guru
    Posts: 886

    Thanks Ravi,

    This code below worked for me

     function bp_activity_read_more( $content, $activity ) {
        if ( 'new_blog_post' === $activity->type ) {
            $post_id = $activity->secondary_item_id;
            $post_url = get_permalink( $post_id );
    
            // Append the "Read More" link to the content
            $read_more_link = '<div class="read-more"><a href="' . esc_url( $post_url ) . '">Read More</a></div>';
            $content .= $read_more_link;
        }
    
        return $content;
    }
    add_filter( 'bp_get_activity_content_body', 'bp_activity_read_more', 10, 2 ); 
  • Participant
    Level: Guru
    Posts: 886
    Tosin on in reply to: [Resolved] Buddyblog pay per post improvement/suggestion #50233

    Thanks for the feedback

    Can I proceed to update BuddyBlog Pro to the current 1.3.9 version as the version you sent me is 1.3.7
    Also will BuddyBlog Pro 1.3.9 work with the pay per post you sent me.

    Thanks

  • Participant
    Level: Guru
    Posts: 886

    Hello Ravi,

    Any update on the next stage

    Thanks