WordPress.org

Plugin Directory

Changeset 775372


Ignore:
Timestamp:
09/19/13 13:56:25 (7 months ago)
Author:
wpmuguru
Message:

add purge action link to all public CPTs

Location:
network-nginx-proxy-cache-purge/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • network-nginx-proxy-cache-purge/trunk/nginx-proxy-cache-purge.php

    r758896 r775372  
    5353        add_action( 'edit_post', array( $this, 'purge_post' ), 10, 2 ); 
    5454        add_action( 'admin_init', array( $this, 'purge_single_post' ) ); 
    55         add_filter( 'post_row_actions', array( $this, 'post_row_actions' ), 10, 2 ); 
    56         add_filter( 'page_row_actions', array( $this, 'post_row_actions' ), 10, 2 ); 
     55        foreach( (array) get_post_types( array( 'public' => true ) ) as $type ) 
     56            add_filter( $type . '_row_actions', array( $this, 'post_row_actions' ), 10, 2 ); 
    5757 
    5858        $this->_purge_slug = apply_filters( 'ranpcp_purge_slug', 'purge' ); 
  • network-nginx-proxy-cache-purge/trunk/readme.txt

    r758896 r775372  
    4444* fix parameter on get_object_terms 
    4545* automatically include custom taxonomies on CPTs 
     46* add purge action link to public CPTs 
    4647 
    4748= 0.2 = 
Note: See TracChangeset for help on using the changeset viewer.