pterotype/inc/init.php

17 lines
416 B
PHP
Raw Normal View History

<?php
namespace init;
require_once plugin_dir_path( __FILE__ ) . '/outbox.php';
require_once plugin_dir_path( __FILE__ ) . '/api.php';
require_once plugin_dir_path( __FILE__ ) . '/activities/create.php';
add_action( 'rest_api_init', function() {
\api\register_routes();
} );
add_action( 'activitypub_init', function() {
\outbox\create_outbox_table();
\activities\create\create_object_table();
} );
?>