Making WordPress.org

Ticket #1506: 1506.1.patch

File 1506.1.patch, 705 bytes (added by keesiemeijer, 8 years ago)

Add filter and action reference hooks

  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php

     
    107107                        if ( isset( $hook_type ) ) {
    108108                                switch ( $hook_type ) {
    109109                                        case 'action':
     110                                        case 'action_reference':                                         
    110111                                                $type = __( 'Action Hook', 'wporg' );
    111112                                                break;
    112113                                        case 'filter':
     114                                        case 'filter_reference':
    113115                                                $type = __( 'Filter Hook', 'wporg' );
    114116                                                break;
    115117                                }