1. Customize
  2. Customizations
  3. Disable confirmation on unlock by expending points

Disable confirmation on unlock by expending points

The following code snippet shows you how you can disable confirmation on unlock achievements and ranks by expending points.

Disable confirmation for achievements:

add_filter( 'gamipress_achievement_unlock_with_points_confirmation', '__return_false' );

Disable confirmation for ranks:

add_filter( 'gamipress_rank_unlock_with_points_confirmation', '__return_false' );

How can we help?