Filter: profile navigation order

Table Of Contents
Hook
peepso_filter_navigation_profile_order

 

Plugin PeepSo Foundation
Since 3.0.0.0
Status Active
Args
array

Description #

This filter is used to order the list of links built with peepso_navigation_profile. The argument is an array of strings – the unique keys representing the links.

The “Stream” and “About” tabs cannot be moved – they will always be displayed first. You are not required to specify all keys – omitted keys will fall back to their original sorting. It’s recommended to follow the array_merge() approach displayed below, to make sure other plugins can also use this filter successfully.

If you are using the WooCommerce Product Vendors plugin and wish to move the “Products” tab, you need to use filter priority higher than 10000.

Examples #

What are your feelings
Updated on September 22, 2023