Documentation

Didn't find anything? Ask your questions in the forum.
Documentation Filters helpful_conditions

helpful_conditions

Help: If you do not know how to execute or save your own PHP code, you can find help here: How to execute PHP code on your WordPress website

Filter the conditions and check if you are on the homepage and not in the single view. The example shows how you can show Helpful on the start page.

add_filter( 'helpful_conditions', function( $conditions ) {

	$key = array_search( 'is_front_page', $conditions );

	if ( false !== $key ) {
		unset( $conditions[ $key ] );
	}

	return $conditions;
});

Was this post helpful?