Making WordPress.org

Changeset 2687


Ignore:
Timestamp:
03/03/2016 08:18:16 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Inform organizers when Sponsor Invoices will arrive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-invoice.php

    r2658 r2687  
    1818
    1919// Admin UI
     20add_action( 'edit_form_top',                              __NAMESPACE__ . '\print_introduction_text'   );
    2021add_filter( 'display_post_states',                        __NAMESPACE__ . '\display_post_states'       );
    2122add_filter( 'manage_'. POST_TYPE .'_posts_columns',       __NAMESPACE__ . '\get_columns'               );
     
    300301
    301302/**
     303 * Print introduction text at the top of the Edit Invoice screen.
     304 *
     305 * @param \WP_Post $post
     306 */
     307function print_introduction_text( $post ) {
     308    if ( POST_TYPE !== $post->post_type ) {
     309        return;
     310    }
     311
     312    ?>
     313
     314    <p>
     315        <?php _e(
     316            'Invoices typically arrive 1-2 business days after the invoice request has been reviewed and approved.',
     317            'wordcamporg'
     318        ); ?>
     319    </p>
     320
     321    <?php
     322}
     323
     324/**
    302325 * Display the status of a post after its title on the Vendor Payments page
    303326 *
Note: See TracChangeset for help on using the changeset viewer.