Skip to content

[Resolved] pp_add_group_user now causes errors

Home Forums Press Permit API pp_add_group_user now causes errors

This topic contains 2 replies, has 2 voices, and was last updated by 1 year, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #22845 Reply

    I’m using pp_add_group_user to add certain users to a specific group. I’ve done this successfully in the past, but now when I try it, I get errors:

    Fatal error: Call to undefined function pp_get_agent() in /nas/content/live/techtest/wp-content/plugins/press-permit-core/api_pp.php on line 296

    Usage in my functions.php is:
    pp_add_group_user(85, 4803);
    I know group 85 exists (I can return it with pp_get_group_by_name). I’m using WP 4.8.1. PP is all up to date 2.3.21 and this happens on multiple themes (inc 2017) with no other plugins active.

    Any idea what’s going wrong? Did I call the function incorrectly, or is this a bug?


    #22850 Reply

    [ login required ]

    #22858 Reply

    [ login required ]

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.