Skip to:
Content
Pages
Categories
Search
Top
Bottom

How does the filter xprofile_filter_link_profile_data works?


  • 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)

  • 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)
  • The topic ‘How does the filter xprofile_filter_link_profile_data works?’ is closed to new replies.
Skip to toolbar