Results 1 to 3 of 3

Thread: Override/Remove function with child theme in CP_Add_New class.

  1. #1
    Thread Starter
    Junior Member elmahdi's Avatar
    Join Date
    Jan 2017
    Posts
    30
    Thanks
    6
    Thanked 1 Time in 1 Post

    Override/Remove function with child theme in CP_Add_New class.

    Hi,

    I'm trying to remove or override the template_redirect() function in the CP_Add_New class (from within a child theme), but cant find the correct method for referencing it?

    I've also tried extending the class to override it, but I think the original function must have been set as final somewhere?

    Is it possible to do this, or is there another way to bypass the login/register step when posting an advert?

    Thanks.

  2. #2
    Moderator ovidiubica's Avatar
    Join Date
    Mar 2011
    Location
    Romania
    Posts
    1,398
    Thanks
    12
    Thanked 184 Times in 170 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Junior Member elmahdi's Avatar
    Join Date
    Jan 2017
    Posts
    30
    Thanks
    6
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I need to override functions using a child theme
    By icreatehosting in forum ClassiPress General Discussion
    Replies: 3
    Last Post: June 25th, 2015, 09:15 AM
  2. Child theme override function problem
    By ncirotto in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 27th, 2014, 09:58 AM
  3. Dimitris Child theme cannot override function in template-tags.php
    By vitako in forum Help Using Vantage (Legacy)
    Replies: 1
    Last Post: April 14th, 2014, 02:18 PM
  4. Child theme cannot override function in template-tags.php
    By vitako in forum Vantage General Discussion (Legacy)
    Replies: 0
    Last Post: April 13th, 2014, 10:50 AM
  5. Override Function in Core Theme
    By Leongelis in forum ClassiPress General Discussion
    Replies: 3
    Last Post: March 21st, 2012, 11:14 PM