Making WordPress.org


Ignore:
Timestamp:
08/25/2020 12:15:55 AM (6 years ago)
Author:
dufresnesteven
Message:

WordPress.org Learn: Sync with GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/wporg-learn.php

    r10169 r10202  
    1111require_once dirname( __FILE__ ) . '/inc/class-shortcodes.php';
    1212require_once dirname( __FILE__ ) . '/inc/class-lesson-plan.php';
    13 require_once dirname( __FILE__ ) . '/inc/class-workshop.php';
    1413require_once dirname( __FILE__ ) . '/inc/blocks.php';
    1514require_once dirname( __FILE__ ) . '/inc/post-meta.php';
     
    2019 * Registry of actions and filters
    2120 */
     21add_action( 'init', 'WPORG_Learn\Post_Type\register' );
     22add_action( 'init', 'WPORG_Learn\Post_Meta\register' );
     23add_action( 'init', 'WPORG_Learn\Taxonomy\register' );
    2224add_action( 'init', array( 'WPOrg_Learn\Shortcodes', 'action_init' ) );
    2325add_filter( 'the_title', array( 'WPOrg_Learn\Lesson_Plan', 'filter_the_title_edit_link' ), 10, 2 );
    2426add_filter( 'get_edit_post_link', array( 'WPOrg_Learn\Lesson_Plan', 'redirect_edit_link_to_github' ), 10, 3 );
    2527add_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' );
    3228add_filter( 'the_content', array( 'WPORG_Learn\Lesson_Plan', 'replace_image_links' ) );
    3329
     
    3531add_action( 'enqueue_block_editor_assets', 'WPORG_Learn\Blocks\enqueue_block_style_assets' );
    3632add_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' );
    3933add_action( 'add_meta_boxes', 'WPORG_Learn\Post_Meta\add_workshop_metaboxes' );
    4034add_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' ) );
    4335add_filter( 'excerpt_length', 'theme_slug_excerpt_length', 999 );
    4436
Note: See TracChangeset for help on using the changeset viewer.