BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Edit Course category
Tagged: course category, remove action
- This topic has 10 replies, 3 contibutors, and was last updated 8 years, 10 months ago by Anonymous.
Question
November 30, 2015 at 5:31 pm #53222@adminchroncleproject-comHi,
We would like to edit the layout of the courses in the Course categories pages. We found out we need to edit the boss_edu_sensei_course_category_main_content action and we’d like to do it in our custom functions.php file but we first need to remove the Boss Sensei action. How can we do that?
Thank you!Answers
December 1, 2015 at 12:12 pm #53334@
AnonymousHi @adminchroncleproject-com following should work
function remove_action_boss_edu() { global $boss_sensei; remove_action( 'sensei_course_category_main_content', array( $boss_sensei, 'boss_edu_sensei_course_category_main_content'), 10 ); } add_action( 'bp_loaded', 'remove_action_boss_edu' )
Regards
Varun DubeyDecember 1, 2015 at 3:49 pm #53363@adminchroncleproject-comHi Varun,
Thank you for your reply. Unfortunately, this is not working. The courses are still showing.Thank you!
December 2, 2015 at 7:01 am #53453@
AnonymousHi @adminchroncleproject-com, I had just gave functions to remove action i was not sure what exactly you are trying to override.
It seems you just need to override loop-course.phpRegards
Varun DubeyDecember 2, 2015 at 11:52 am #53491@adminchroncleproject-comHi Varun,
I think what you gave me was exactly what I needed, but for some reason it is not working. I am indeed trying to remove the action boss_edu_sensei_course_category_main_content and to add my own instead. At the moment, I managed to add my own function but not to remove the original one (so the courses are showing twice). Do you have an idea why it is still showing?This is what I have in my functions.php file:
function remove_action_boss_edu() { global $boss_sensei; remove_action( 'sensei_course_category_main_content', array( $boss_sensei, 'boss_edu_sensei_course_category_main_content'), 10 ); } add_action( 'bp_loaded', 'remove_action_boss_edu' ); add_action( 'sensei_course_category_main_content', 'my_boss_edu_sensei_course_category_main_content', 9 ); function my_boss_edu_sensei_course_category_main_content() { (...) }
December 10, 2015 at 7:56 am #54137@adminchroncleproject-comHi,
I would appreciate a follow-up on this question. Do you need any other information ?
Thank you for you support on this
December 14, 2015 at 12:11 am #54361@
AnonymousHi @adminchroncleproject-com, Sorry for the delayed response
I will provide you specific codes today after cross testing them.
Regards
Varun DubeyJanuary 7, 2016 at 12:19 pm #55779@adminchroncleproject-comHi Varun,
We didn’t had news from you about this issue. Have you found out something that could help us?
Thank you!Please send your reply to [email protected] thank you!
January 9, 2016 at 1:54 pm #55914@
AnonymousHi @adminchroncleproject-com, It is already submitted to developer to fix override options , which can let customer to override the plugin template files. These updates will be pushed with the plugin Boss-Sensei update.
RegardsJanuary 11, 2016 at 6:47 pm #56069@adminchroncleproject-comHi Pallavi,
Thank you for your message.
Do you have an idea when the update will be available?Thank you!
January 13, 2016 at 11:07 am #56173@
AnonymousHi @adminchroncleproject-com, It will be updated soon..
Thanks
- The question ‘Edit Course category’ is closed to new replies.