Making WordPress.org

Changeset 5362


Ignore:
Timestamp:
04/18/2017 09:31:57 PM (7 years ago)
Author:
coreymckrill
Message:

WordCamp: Add the wcpt_configure_new_site action hook

This hook fires during the configuration phase of the creation
of a new WordCamp site. It allows other plugins to run additional
configuration routines for each site that's created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php

    r5018 r5362  
    345345        $this->set_default_options( $wordcamp, $meta );
    346346        $this->create_post_stubs( $wordcamp, $meta, $lead_organizer );
     347
     348        /**
     349         * Hook into the configuration process for a new WordCamp site.
     350         *
     351         * This fires in the context of the newly created site, after the theme has been set and the
     352         * default options and post stubs have been created.
     353         *
     354         * @param int     $wordcamp_id The ID of the new site.
     355         * @param WP_Post $wordcamp    The post object of the WordCamp on Central.
     356         */
     357        do_action( 'wcpt_configure_new_site', $wordcamp_id, $wordcamp );
    347358
    348359        remove_filter( 'upload_dir', array( $this, '_fix_wc_upload_dir' ) );
Note: See TracChangeset for help on using the changeset viewer.