• Resolved mark4carter

    (@mark4carter)


    Hello, I’m trying to understand more of what’s going on under the hood with the bps_directory (faux) shortcode but having trouble finding how it populates the page. I found the function it run does nothing.

    add_shortcode ('bps_directory', function() {return '';});

    The only other place I saw it being used is in the bps_directories() function, but that looks to only list pages that have the shortcode.

    Can someone give me a little more insight on where the bps_directory functions/code is?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Mark,

    Actually BP Profile Search doesn’t contain code to build a members directory, it simply makes BuddyPress believe that any page with [bps_directory] is the standard Members directory and BuddyPress does all the work itself.

    The filter used is ‘bp_core_get_directory_page_ids’, and the relevant code is in the bps-directory.php file.

    Thread Starter mark4carter

    (@mark4carter)

    Hello,

    Ah, that makes perfect sense now. Thank you, I see it in the original bp-core.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘BPS_Directory shortcode explanation’ is closed to new replies.