WPIntell

Source evidence

add shortcode to toggle content

DocCheck Login · support · 2019-11-07T09:52:00+00:00

complaintsentiment
mediumseverity
0.69relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

5 / 25 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Matt unresolved
Please add the following shortcode at ‘/doccheck-login/client/class-dcl-shortcodes.php ‘ add_shortcode( 'dc-toggle-content', [ $this, 'dcl_shortcode_toggle_content' ] ); /** * Shortcode: toggle content. * * Toogles content between brackets for DocCheck users. * If Users logs in, then Content is hidden * * [dc-toggle-content]Hidden content[/dc-toggle-content] * * @param $atts * @param null $content * * @return string * @since 1.0.0 * @access public */ public function dcl_shortcode_toggle_content( $atts, $content = null ) { if ( $this->dcl_has_logged_in_user() ) { } else { return wpautop( $content ); } return ''; } This way we are able to add custom messages for non logged in users and won’t bother logged in users. And please, please move this plugin from SVN to GIT 🙂

Comments

0 shown

No comments were stored for this source.