PluginProbe
ActivityPub / 7.7.0
ActivityPub v7.7.0
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / includes / wp-admin / import / load.php

load.php in ActivityPub 7.7.0, at includes/wp-admin/import/load.php

39 lines 911 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Importers file.
4 *
5 * @package Activitypub
6 */
7
8 namespace Activitypub\WP_Admin\Import;
9
10 /**
11 * Load importers.
12 */
13 function load() {
14 require_once ABSPATH . 'wp-admin/includes/import.php';
15
16 if ( ! class_exists( 'WP_Importer' ) ) {
17 $class_wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php';
18 if ( file_exists( $class_wp_importer ) ) {
19 require_once $class_wp_importer;
20 }
21 }
22
23 \register_importer(
24 'mastodon',
25 \__( 'Mastodon (Beta)', 'activitypub' ),
26 \__( 'Import content from Mastodon.', 'activitypub' ),
27 array( __NAMESPACE__ . '\Mastodon', 'dispatch' )
28 );
29
30 if ( '1' === \get_option( 'activitypub_following_ui', '0' ) ) {
31 \register_importer(
32 'starter-kit',
33 \__( 'Fediverse Starter Kits (Beta)', 'activitypub' ),
34 \__( 'Automatically follow a collection of Fediverse users.', 'activitypub' ),
35 array( __NAMESPACE__ . '\Starter_Kit', 'dispatch' )
36 );
37 }
38 }
39