Making WordPress.org

Changeset 10767


Ignore:
Timestamp:
03/04/2021 11:55:49 PM (4 years ago)
Author:
coffee2code
Message:

Handbooks, Init: Add 'before_handbooks_init' and 'after_handbooks_init' action hooks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/init.php

    r10766 r10767  
    7070     */
    7171    public static function init() {
     72        /**
     73         * Fires before handbooks have been initialized.
     74         */
     75        do_action( 'before_handbooks_init' );
     76
    7277        $post_types = self::get_post_types();
    7378
     
    8792        add_action( 'wp_enqueue_scripts', [ __CLASS__, 'enqueue_styles' ] );
    8893        add_action( 'wp_enqueue_scripts', [ __CLASS__, 'enqueue_scripts' ] );
     94
     95        /**
     96         * Fires after handbooks have been initialized.
     97         */
     98        do_action( 'after_handbooks_init' );
    8999    }
    90100
Note: See TracChangeset for help on using the changeset viewer.