Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

store

prueba

// Add Shortcode
function store_link_shortcode() {

	function bp_members_slug() {
		echo bp_get_members_slug();
	}
		/**
		 * Return the members component slug.
		 *
		 * @since 1.5.0
		 *
		 * @return string
		 */
		function bp_get_members_slug() {
	
			/**
			 * Filters the Members component slug.
			 *
			 * @since 1.5.0
			 *
			 * @param string $slug Members component slug.
			 */
			return apply_filters( 'bp_get_members_slug', buddypress()->members->slug );
		}

}
add_shortcode( 'link-to-store', 'store_link_shortcode' );