• Resolved koderius

    (@koderius)


    Hi there,
    It is not clear to me where should I put the filter hooks
    mentioned in the documentation

    Functions.php of the theme?
    Inside the plugin files? as in >new-user-approve.php?

    If so do I just copy-paste them at the end of the code or a specific place?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • A.Tariq

    (@arsalantariq)

    Hi @koderius,

    Thanks for using the plugin,

    I hope you are doing well, You can add filter hooks in Functions.php.

    Thanks & Regards

    WP Experts Support Team

    Thread Starter koderius

    (@koderius)

    Which Functions.php.?
    Of the theme?
    Of the plugin?

    There are a lot of places with Functions.php. ??

    Thanks

    A.Tariq

    (@arsalantariq)

    Hi @koderius,

    Function.php of the theme.

    Thanks

    Thread Starter koderius

    (@koderius)

    Thanks!

    Thread Starter koderius

    (@koderius)

    One last question:
    So if i put this in theme functions :
    – new_user_approve_approve_user_subject – modify the user approval subject

    Do I need to add anything else for it to work?
    Thanks

    A.Tariq

    (@arsalantariq)

    Hi @koderius,

    You need to add the code something like this:

    add_filter('new_user_approve_approve_user_subject', function($subject) { return "Here goes your new subject"; });

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘filter hooks’ is closed to new replies.