BuddyDev

Search

[Resolved] Buddyblog code adjustment

  • Participant
    Level: Guru
    Posts: 886
    Tosin on #46914

    Hello

    I use the code below to add the edit button in my posts

     <?php if ( is_singular('post') ) : ?>
    <?php if ( function_exists( 'bblpro_get_post_edit_link' ) ) { echo bblpro_get_post_edit_link( get_the_ID() ); } ?>
    <?php endif; ?> 

    This outputs the link (Edit)

    I would like to change the text of the link from (Edit) to (Edit or Promote This Post) only in the single post page

    Thanks

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2985
    Ravi on #46917

    Hello Tosin,

    Try calling the edit link function in the following way

    
    bblpro_get_post_edit_link( get_the_ID(), array( 'label' => esc_html( 'Edit or Promote This Post' ) ) );
    
    

    please check.

    Regards
    Ravi

  • Participant
    Level: Guru
    Posts: 886
    Tosin on #46928

    Thanks Ravi

    This is resolved

The topic ‘ [Resolved] Buddyblog code adjustment’ is closed to new replies.

This topic is: resolved