Skip to:
Content
Pages
Categories
Search
Top
Bottom

How does the filter xprofile_filter_link_profile_data works?

  • Avatar of Nicola Greco
    nicolagreco
    Participant

    @nicolagreco

    Why when i try to add that filter like:

    add_filter( ‘groups_extra_fields_content_the-type’, ‘xprofile_filter_link_profile_data’, 1, 1 );

    it works but it returns me:

    Warning: Missing argument 3 for xprofile_filter_link_profile_data() in /home/admin/domains/bpdev/wordpress/wp-content/mu-plugins/bp-xprofile/bp-xprofile-filters.php on line 32

    ?

    thanks (i don’t have looked the code yet),

    Nicola Greco,

    BPDEV & BP GURU

Viewing 1 replies (of 1 total)
  • Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

    The xprofile_filter_link_profile_data() function takes 3 params nicola. You are telling wp that the function call takes only 1 with add_filter(‘whatever’,’something’,1,1)

    There are no defaults for that xprofile function so it crashes. Gotta specify 3 and pass 3 params.

    add_filter(‘whatever’,’something’,1,3)

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.