[wp-testers] post_row_actions

Otto otto at ottodestruct.com
Wed Nov 23 22:50:28 UTC 2011


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
>


More information about the wp-testers mailing list