Results 1 to 2 of 2

Thread: Add page to dashboard via filter doesn't work

  1. #1
    Thread Starter
    Newbie coworkfreelance's Avatar
    Join Date
    Jul 2024
    Location
    United States
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Add page to dashboard via filter doesn't work

    Hi! I'm using this code to add page to dashboard
    PHP Code:
    add_filter'hrb_dashboard_pages''add_ele_page_to_dashboard',99 );

    /**
     * Додати вкладку ЕО в кабінеті
     *
     * @param array $permalinks
     *
     * @return array
     */
    function add_ele_page_to_dashboard( array $permalinks ): array {
        
    $permalinks[] = array(
            
    'ele' => array(
                
    'name'      => __'Electronic legal entities''hirebee-child' ),
                
    'permalink' => 'ele',
            ),
        );

        return 
    $permalinks;

    I've also added this page to dashboard by rewriting sidebar-dashboard.php

    After this I go to permalinks settings section in Wordpress and press update, however when I try to open new dashboard page it says page not found. When I open the parent theme and insert new tab directly in hrb_dashboard_pages function and update permalink structure page new page begin to load. Can you help so I don't have to make this change to parent theme

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,949
    Thanks
    169
    Thanked 3,405 Times in 3,276 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Location filter field doesn't work? Classipres s4
    By labo17 in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: October 4th, 2018, 04:18 PM
  2. Search filter location doesn't work (CP3)
    By labo17 in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: October 1st, 2018, 02:50 PM
  3. filter doesn't get display on coupon page
    By akrathi in forum Sorted Filtered Coupons for Clipper
    Replies: 1
    Last Post: May 16th, 2017, 11:17 AM
  4. Job filter doesn't work
    By mattbeswick in forum Report JobRoller Bugs
    Replies: 1
    Last Post: April 23rd, 2015, 09:48 AM
  5. [SOLVED] Map / location search filter doesn't work - the post search filter works fine
    By tdelude in forum Report JobRoller Bugs
    Replies: 4
    Last Post: May 23rd, 2013, 10:35 AM