• Resolved nishkam

    (@nishkam)


    Hi,

    I am using the WP job manager plugin with BuddyPress to build my website and I am using the the “BP job manager” add-on to display users resumes on their BuddyPress profile.

    Unfortunately, the “BP Job manager” add-on doesn’t appear to be supported anymore and the problem I was having is that, as you can see here:

    https://prnt.sc/qskqbd

    …there is some text which is displayed on user profiles which says “Your listings are shown in the table below.” but I only wanted the text to be visible if a user is logged in and viewing their own profile.

    I was just wondering whether this plugin supported php as I wanted to replace:

    <p>Your listings are shown in the table below.</p>

    with:

    if (is_user_logged_in() && bp_is_my_profile()) {
    echo ‘<p>Your resume can be viewed, edited or removed below. </p>’;
    }

    but for some reason when I tried to find and replace this text it is now just showing the code on front end:

    https://prnt.sc/rfp0lk

    https://prnt.sc/rfp185

    I was wondering if it is possible for this to be done another way with this plugin?

    Many thanks,

    Jas

Viewing 1 replies (of 1 total)
  • Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    My plugin is the last thing to execute before content is sent to a user’s browser. By that point WordPress is done executing PHP. This is a design feature as it ensures that the plugin has access to the entire HTML output of the page.

Viewing 1 replies (of 1 total)
  • The topic ‘Can code be used to replace text?’ is closed to new replies.