WPIntell

Source evidence

Custom filter hook usage

If Shortcode · support · 2018-04-03T11:31:00+00:00

complaintsentiment
mediumseverity
0.75relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

6 / 29 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
mhamblin unresolved
Hi there, I’m trying to extend your nice plugin with a custom filter hook. I’m trying to show some content on a singular post that only shows up if the post author is viewing the post, so they can edit and view some statistics on the post. But I am having trouble… Here’s the code I used, in my functions.php file: add_filter($if_shortcode_filter_prefix.'current_user_is_author','my_condition_evaluator'); function my_condition_evaluator($value) { $evaluate=current_user_can('author'); return $evaluate; } First, do I have the general syntax correct? Second, do you know if my evaluation criteria of current_user_can(‘author’) will work for this? I’m using the shortcode on a singular post. Thanks! The page I need help with: [ log in to see the link]

Comments

0 shown

No comments were stored for this source.