is_directory flag to true, which help other // content to display content properly on your directory. bp_update_is_directory( true, BP_DEDICATION_SLUG ); // Add an action so that plugins can add content or modify behavior do_action( 'bp_dedication_directory_setup' ); bp_core_load_template( apply_filters( 'bp_dedication_template_index', 'dedications/index' ) ); } } add_action( 'bp_screens', 'bp_dedication_directory_setup' ); function bp_dedication_my_dedications() { global $bp; do_action( 'bp_dedication_my_dedications' ); add_action( 'bp_template_title', 'bp_dedication_my_dedications_title' ); add_action( 'bp_template_content', 'bp_dedication_my_dedications_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function bp_dedication_my_dedications_title() { _e( 'My dedications', 'bp-dedication' ); } function bp_dedication_my_dedications_content() { global $bp; $dedications = bp_dedication_get_dedications_from_user( $bp->displayed_user->id ); /** * For security reasons, we MUST use the wp_nonce_url() function on any actions. * This will stop naughty people from tricking users into performing actions without their * knowledge or intent. */ $send_link = wp_nonce_url( $bp->displayed_user->domain . $bp->current_component . '/screen-one/send-h5', 'bp_example_send_high_five' ); ?>

high-five!', 'bp-example' ), $bp->displayed_user->fullname, $send_link ) ?>

  post_title, $dedication->ID ); ?>
displayed_user->id ); /** * For security reasons, we MUST use the wp_nonce_url() function on any actions. * This will stop naughty people from tricking users into performing actions without their * knowledge or intent. */ $send_link = wp_nonce_url( $bp->displayed_user->domain . $bp->current_component . '/screen-one/send-h5', 'bp_example_send_high_five' ); ?>

high-five!', 'bp-example' ), $bp->displayed_user->fullname, $send_link ) ?>

  post_title, $dedication->ID ); ?>
loggedin_user->id, 'bp-example-option-one', attribute_escape( $_POST['bp-example-option-one'] ) ); } add_action( 'bp_template_content_header', 'bp_example_screen_settings_menu_header' ); add_action( 'bp_template_title', 'bp_example_screen_settings_menu_title' ); add_action( 'bp_template_content', 'bp_example_screen_settings_menu_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function bp_example_screen_settings_menu_header() { _e( 'Example Settings Header', 'bp-example' ); } function bp_example_screen_settings_menu_title() { _e( 'Example Settings', 'bp-example' ); } function bp_example_screen_settings_menu_content() { global $bp, $bp_settings_updated; ?>

loggedin_user->id, 'bp-example-option-one', true ) ) : ?> checked="checked" />