芝麻web文件管理V1.00
编辑当前文件:/home/mybf1/www/pati.bf1.my/wp-content/plugins/spotlight-social-photo-feeds/modules/FeedsModule.php
new Constructor(PostType::class, [ 'cpt/slug', 'cpt/args', 'cpt/fields', ]), // The slug name for the feeds CPT 'cpt/slug' => new Value('sl-insta-feed'), // The args for the feeds CPT 'cpt/args' => new Value([ 'labels' => [ 'name' => 'Spotlight feeds', 'singular_name' => 'Spotlight feed', ], 'public' => false, 'supports' => ['title', 'custom-fields'], 'show_in_rest' => false, ]), // The meta fields for the feeds CPT 'cpt/fields' => new Value([ new MetaField(FeedPostType::OPTIONS), ]), // The template that renders feeds 'template' => new Constructor(FeedTemplate::class, []), // The item feed manager 'manager' => new Constructor(FeedManager::class, ['cpt', '@accounts/cpt']), ]; } /** * @inheritDoc * * @since 0.1 */ public function getExtensions() : array { return [ // Add the post type to WordPress 'wp/post_types' => new ArrayExtension(['cpt']), ]; } }