[wp-testers] post_row_actions

Emiliano Jankowski ejankowski at gmail.com
Thu Nov 24 00:54:57 UTC 2011


oh boy! I thought I had tested it... my mistake!

thanks a lot!


On Wed, Nov 23, 2011 at 7:50 PM, Otto <otto at ottodestruct.com> wrote:

> 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
> <ejankowski at gmail.com> 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
> > wp-testers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-testers
> >
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>



-- 
http://www.flickr.com/photos/ejankowski/
--

Emiliano Jankowski
Lic. Sistemas


More information about the wp-testers mailing list