1. Customize
  2. Customizations
  3. Disable specific requirement link

Disable specific requirement link

By default, GamiPress adds a link on requirements (steps, points type awards and deducts and rank requirements) that their event is related to a specific element (like “Comment on a specific post” or “Visit a specific page”).

The following code snippet shows you how you can disable this link for all requirements:

// Disable links on achievement steps
remove_filter( 'gamipress_step_title_display', 'gamipress_format_requirement_title_with_post_link', 10 );
// Disable links on points awards
remove_filter( 'gamipress_points_award_title_display', 'gamipress_format_requirement_title_with_post_link', 10 );
// Disable links on points deduct
remove_filter( 'gamipress_points_deduct_title_display', 'gamipress_format_requirement_title_with_post_link', 10 );
// Disable links on rank requirements
remove_filter( 'gamipress_rank_requirement_title_display', 'gamipress_format_requirement_title_with_post_link', 10 );

How can we help?