refactoring
Some checks failed
Deploy to https://wordpress-test.event-federation.eu/ / deploy (push) Failing after 6s

make get_supported_post_types static
This commit is contained in:
André Menrath 2023-12-04 19:42:13 +01:00
parent 88e5f9aba8
commit 89ffb3d797
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ class Tribe extends \Activitypub\Transformer\Base {
* @access public * @access public
* @return array Widget categories. * @return array Widget categories.
*/ */
public function get_supported_post_types() { public static function get_supported_post_types() {
return array( 'tribe_events' ); return array( 'tribe_events' );
} }
} }

View file

@ -68,7 +68,7 @@ class VS_Event extends \Activitypub\Transformer\Base {
* @access public * @access public
* @return array Widget categories. * @return array Widget categories.
*/ */
public function get_supported_post_types() { public static function get_supported_post_types() {
return array( 'event' ); return array( 'event' );
} }