update example to changes in parent plugin

This commit is contained in:
André Menrath 2023-11-22 14:59:51 +01:00
parent 426f87ea61
commit 3afd15a1a8
2 changed files with 7 additions and 9 deletions

View file

@ -21,14 +21,12 @@ if ( ! defined( 'ABSPATH' ) ) {
* Include fransformer file and register transformer class.
*
* @since 1.0.0
* @param \ActivityPUb\Transformers_Manager $transformers_manager ActivtiyPub transformers manager.
* @param \Activitypub\Transformer\Transformers_Manager $transformers_manager ActivtiyPub transformers manager.
* @return void
*/
function register_tribe_transformer( $transformers_manager ) {
require_once( __DIR__ . '/transformers/tribe-transformer.php' );
$transformers_manager->register( new \Activitypub_Tribe_Transformer() );
require_once( __DIR__ . '/activitypub/transformer/tribe.php' );
$transformers_manager->register( new \Tribe() );
}
add_action( 'activitypub/transformers/register', 'register_tribe_transformer' );
add_action( 'activitypub_transformers_register', 'register_tribe_transformer' );

View file

@ -8,7 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) {
*
* @since 1.0.0
*/
class Activitypub_Tribe_Transformer extends \Activitypub\Transformer_Base {
class Tribe extends \Activitypub\Transformer\Base {
/**
* Get widget name.