WPIntell

Source evidence

mark_as_read_single_forum_link function issue

bbPress Pencil Unread · support · 2016-01-17T00:35:00+00:00

complaintsentiment
highseverity
0.9relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 34 rows with source links

14.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
johnmontfx unresolved
I’m attempting to use the mark_as_read_single_forum_link() function to put the link in a diffrent location in loop-topics.php. However, I’m getting an undefined error. It’s odd, because on the same page, I have the standard mark as read link, via the standard hook. <?php if ( is_user_logged_in() ) { echo '<a href="#new-post" class="btn">New Topic</a>'; } ?> <?php mark_as_read_single_forum_link(); ?> <?php fx_bbp_user_subscribe_link( array( 'before' => '' ) ); ?> PHP Fatal error: Call to undefined function mark_as_read_single_forum_link() Any suggestions? Thanks for any insights…. https://wordpress.org/plugins/bbpress-pencil-unread/ Figured it out… bbP_Pencil_Unread::mark_as_read_single_forum_link(); Though following up on this, what is the correct syntax for removing this action? //mark as read add_action('bbp_template_after_pagination_loop', array(&$this,"mark_as_read_single_forum_link")); Tried this but it doesn’t seem to work. I’m sure I’m doing something wrong as I’m learning about classes inside plugins today… //Remove Pencil Mark as Unread Action $fxtmp = bbP_Pencil_Unread::instance(); remove_action('bbp_template_after_pagination_loop', array($fxtmp,"mark_as_read_single_forum_link"));

Comments

3 shown
johnmontfx 2016-01-17T00:56:00+00:00

Figured it out… bbP_Pencil_Unread::mark_as_read_single_forum_link();

johnmontfx 2016-01-17T01:00:00+00:00

Though following up on this, what is the correct syntax for removing this action? //mark as read add_action('bbp_template_after_pagination_loop', array(&$this,"mark_as_read_single_forum_link"));

johnmontfx 2016-01-17T23:20:00+00:00

Tried this but it doesn’t seem to work. I’m sure I’m doing something wrong as I’m learning about classes inside plugins today… //Remove Pencil Mark as Unread Action $fxtmp = bbP_Pencil_Unread::instance(); remove_action('bbp_template_after_pagination_loop', array($fxtmp,"mark_as_read_single_forum_link"));