pterotype/inc/init.php

19 lines
501 B
PHP

<?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__ ) . '/objects.php';
require_once plugin_dir_path( __FILE__ ) . '/activities.php';
add_action( 'rest_api_init', function() {
\api\register_routes();
} );
add_action( 'activitypub_init', function() {
\activities\create_activities_table();
\objects\create_object_table();
\outbox\create_outbox_table();
} );
?>