Course forum link placement
-
Hi,
I’ve placed the forum link below the course meta info inside the course header by hooking the forum_link function this way:
add_action( 'learn-press/course-content-summary', function(){(new LP_Addon_bbPress)->forum_link();}, 14 );
But I’m not very good at OOP and can’t figure out how to remove the default print link action hooked in load.php line 62:
add_action( 'learn-press/single-course-summary', array( $this, 'forum_link' ), 0 );
I’ve tried this:add_action( 'wp_head', 'sale' ); function sale() { remove_action('learn-press/single-course-summary', array(LP_Addon_bbPress, 'forum_link'), 0); }
How LP_Addon_bbPress class is instantiated? There is no global object?
- The topic ‘Course forum link placement’ is closed to new replies.