Results 1 to 4 of 4

Thread: Using hooks to change functions or remove them

  1. #1
    Thread Starter
    coza's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town, South Africa
    Posts
    141
    Thanks
    53
    Thanked 12 Times in 10 Posts

    Using hooks to change functions or remove them

    Ive been changing a theme I made to use functions and hooks rather than editing the theme itself. I have managed to add custom CSS files and changed the footer but am now stuck on one of my tasks at hand.

    I'm trying to remove jr_job_author() from the job loop and replace it with an edited version - ie not to display that the advert was posted by admin.

    (as a quick method I edited the the theme-functions file and edited the code directly - not the best method)



    I have tried removing the function in functions.php using the supplied code:

    remove_action( 'appthemes_tried_various methods', 'jr_job_author' );

    When using it as a stand alone it doesn't seem to work and when I use the code provided in the removing the footer and replacing it with something similar i'm told unhook_appthemes_functions has already been used.




    Any help would be very beneficial, Thank you!
    Jobroller: JobsTown

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,867 Times in 1,767 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    tinygiantstudios's Avatar
    Join Date
    Jan 2011
    Posts
    1,607
    Thanks
    31
    Thanked 157 Times in 148 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!


  4. #4
    Thread Starter
    coza's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town, South Africa
    Posts
    141
    Thanks
    53
    Thanked 12 Times in 10 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Jobroller: JobsTown

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [TUTORIAL] Child Theme : Unhook ( remove hook ) default appthemes functions
    By amine0272 in forum ClassiPress General Discussion
    Replies: 9
    Last Post: August 6th, 2013, 03:42 PM
  2. From Where do i change the hooks?
    By TheSyndicate in forum Report ClassiPress Bugs
    Replies: 8
    Last Post: April 25th, 2012, 10:26 PM
  3. Reasoning behind putting everything into functions and sub functions?
    By rodeoramsey in forum Report ClassiPress Bugs
    Replies: 12
    Last Post: November 16th, 2011, 12:05 PM
  4. CP 3.1 API hooks
    By joniboy in forum Help Using ClassiPress
    Replies: 4
    Last Post: August 15th, 2011, 01:47 PM
  5. appthemes hooks
    By anthonyaj in forum ClassiPress General Discussion
    Replies: 3
    Last Post: July 18th, 2011, 03:18 PM