Advertisement
rdusnr

Untitled

Oct 1st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels');
  2.  
  3. function my_custom_levels($kleo_pay_settings) {
  4. $kleo_pay_settings[] = array(
  5. 'title' => __('New Option A','kleo_framework'),
  6. 'front' => __('Option A','kleo_framework'),
  7. 'name' => 'new_option_a'
  8. );
  9. $kleo_pay_settings[] = array(
  10. 'title' => __('New Option B','kleo_framework'),
  11. 'front' => __('Option B','kleo_framework'),
  12. 'name' => 'new_option_b'
  13. );
  14. $kleo_pay_settings[] = array(
  15. 'title' => __('New Option C','kleo_framework'),
  16. 'front' => __('Option C','kleo_framework'),
  17. 'name' => 'new_option_c'
  18. );
  19. return $kleo_pay_settings;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement