Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'jnews_dropdown_link', 'change_dropdown_link' );
- function change_dropdown_link( $dropdown ) {
- if ( is_user_logged_in() ) {
- $new_dropdown = array(
- 'account' => array(
- 'text' => 'My Account', /* dropwon link Text */
- 'url' => 'https://jnews.io/', /* dropwon link URL */
- ),
- 'manage_subscription' => array(
- 'text' => 'Manage Subscription', /* dropwon link Text */
- 'url' => 'https://jnews.io/', /* dropwon link URL */
- ),
- 'e_ediiton' => array(
- 'text' => 'E-Edition', /* dropwon link Text */
- 'url' => 'https://jnews.io/', /* dropwon link URL */
- ),
- );
- if ( isset( $new_dropdown ) ) {
- $dropdown = $new_dropdown;
- }
- }
- return $dropdown;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement