Advertisement
phpface

Untitled

Aug 28th, 2023 (edited)
1,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. add_filter( 'streamtube/core/mycred/public_point_types', function( $point_types ){
  2.  
  3.     $custom_point_type = 'my-point';
  4.  
  5.     if( array_key_exists( $custom_point_type, $point_types ) ){
  6.         unset( $point_types[ $custom_point_type ] );
  7.     }
  8.  
  9.     return $point_types;
  10.  
  11. }, 10, 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement