PluginProbe
Extendify / 3.1.3
Extendify v3.1.3
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Agent / tours / tours.js

tours.js in Extendify 3.1.3, at src/Agent/tours/tours.js

30 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import libraryTour from '@agent/tours/library-tour';
2 import pageCreator from '@agent/tours/page-creator';
3 import pageEditor from '@agent/tours/page-editor';
4 import pluginInstall from '@agent/tours/plugin-install';
5 import pluginManagement from '@agent/tours/plugin-management';
6 import siteAssistant from '@agent/tours/site-assistant';
7 // import styleEditor from '@agent/tours/style-editor.js';
8 import usersScreen from '@agent/tours/users-screen.js';
9 import { addFilter, applyFilters } from '@wordpress/hooks';
10
11 // import welcomeTour from '@agent/tours/welcome.js';
12
13 const tours = {
14 // 'welcome-tour': welcomeTour,
15 'plugin-install-tour': pluginInstall,
16 'plugin-management-tour': pluginManagement,
17 'page-editor-tour': pageEditor,
18 'library-tour': libraryTour,
19 // 'style-editor-tour': styleEditor,
20 'users-screen-tour': usersScreen,
21 'site-assistant-tour': siteAssistant,
22 };
23
24 addFilter('extendify.tours', 'extendify/extra-tours', (tours) => {
25 if (!window.extSharedData?.showAIPageCreation) return tours;
26 return { ...tours, 'page-creator-tour': pageCreator };
27 });
28
29 export default applyFilters('extendify.tours', tours);
30