When you have more than one argument being pass, you have to tell it how many arguments to pass.
add_filter( 'post_row_actions', 'mvn_change_actions', 10, 2); -Otto On Wed, Nov 23, 2011 at 8:40 AM, Emiliano Jankowski <[email protected]> wrote: > Hi there! > > I'm trying to use the *post_row_actions* filter, but I'm having: > > Warning: Missing argument 2 for mvn_change_actions() > > This is the code, for testing purpose > add_filter( 'post_row_actions', 'mvn_change_actions'); > function mvn_change_actions( $actions,$post) { > > $actions = array(); > > return $actions; > } > > And also, it does't execute for a custom post type ( > > I'm using *WP 3.3-beta3-19254* > > > Thanks! > > > > -- > http://www.flickr.com/photos/ejankowski/ > -- > > Emiliano Jankowski > Lic. Sistemas > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers > _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
