1 | <?php |
||
12 | class FooGallery_Extensions_Compatibility { |
||
|
|||
13 | |||
14 | function __construct() { |
||
20 | |||
21 | /** |
||
22 | * @param $classes |
||
23 | * @param $foogallery_attachment |
||
24 | * @param $args |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function add_video_class_to_item( $classes, $foogallery_attachment, $args ) { |
||
42 | |||
43 | } |
||
44 | } |
||
45 |
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.