| 1 | <?php |
||
| 18 | class WordPoints_BP_Hook_Action_Avatar extends WordPoints_Hook_Action { |
||
|
|
|||
| 19 | |||
| 20 | /** |
||
| 21 | * The type of object to fire for. |
||
| 22 | * |
||
| 23 | * @since 1.2.1 |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $bp_avatar_object_type = 'user'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @since 1.2.1 |
||
| 31 | */ |
||
| 32 | public function __construct( $slug, array $action_args, array $args = array() ) { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @since 1.2.1 |
||
| 43 | */ |
||
| 44 | public function should_fire() { |
||
| 52 | } |
||
| 53 | |||
| 55 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.