Changeset 10202 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/wporg-learn.php
- Timestamp:
- 08/25/2020 12:15:55 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/wporg-learn.php
r10169 r10202 11 11 require_once dirname( __FILE__ ) . '/inc/class-shortcodes.php'; 12 12 require_once dirname( __FILE__ ) . '/inc/class-lesson-plan.php'; 13 require_once dirname( __FILE__ ) . '/inc/class-workshop.php';14 13 require_once dirname( __FILE__ ) . '/inc/blocks.php'; 15 14 require_once dirname( __FILE__ ) . '/inc/post-meta.php'; … … 20 19 * Registry of actions and filters 21 20 */ 21 add_action( 'init', 'WPORG_Learn\Post_Type\register' ); 22 add_action( 'init', 'WPORG_Learn\Post_Meta\register' ); 23 add_action( 'init', 'WPORG_Learn\Taxonomy\register' ); 22 24 add_action( 'init', array( 'WPOrg_Learn\Shortcodes', 'action_init' ) ); 23 25 add_filter( 'the_title', array( 'WPOrg_Learn\Lesson_Plan', 'filter_the_title_edit_link' ), 10, 2 ); 24 26 add_filter( 'get_edit_post_link', array( 'WPOrg_Learn\Lesson_Plan', 'redirect_edit_link_to_github' ), 10, 3 ); 25 27 add_filter( 'o2_filter_post_actions', array( 'WPOrg_Learn\Lesson_Plan', 'redirect_o2_edit_link_to_github' ), 11, 2 ); 26 add_action( 'init', array( 'WPORG_Learn\Lesson_Plan', 'lesson_plan_post_type' ) );27 add_action( 'init', array( 'WPORG_Learn\Lesson_Plan', 'lesson_duration_taxonomy' ) );28 add_action( 'init', array( 'WPORG_Learn\Lesson_Plan', 'lesson_level_taxonomy' ) );29 add_action( 'init', array( 'WPORG_Learn\Lesson_Plan', 'lesson_audience_taxonomy' ) );30 add_action( 'init', array( 'WPORG_Learn\Lesson_Plan', 'lesson_instruction_type_taxonomy' ) );31 add_action( 'init', 'WPORG_Learn\Taxonomy\register' );32 28 add_filter( 'the_content', array( 'WPORG_Learn\Lesson_Plan', 'replace_image_links' ) ); 33 29 … … 35 31 add_action( 'enqueue_block_editor_assets', 'WPORG_Learn\Blocks\enqueue_block_style_assets' ); 36 32 add_action( 'wp_enqueue_scripts', 'WPORG_Learn\Blocks\enqueue_block_style_assets' ); 37 add_action( 'init', 'WPORG_Learn\Post_Types\register' );38 add_action( 'init', 'WPORG_Learn\Post_Meta\register' );39 33 add_action( 'add_meta_boxes', 'WPORG_Learn\Post_Meta\add_workshop_metaboxes' ); 40 34 add_action( 'save_post_wporg_workshop', 'WPORG_Learn\Post_Meta\save_workshop_metabox_fields', 10, 2 ); 41 add_action( 'init', array( 'WPORG_Learn\Workshop', 'lesson_workshop_taxonomy' ) );42 add_action( 'init', array( 'WPORG_Learn\Workshop', 'workshop_topics_taxonomy' ) );43 35 add_filter( 'excerpt_length', 'theme_slug_excerpt_length', 999 ); 44 36
Note: See TracChangeset
for help on using the changeset viewer.