This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| ** Add a custom field on topic front end form | |
| */ | |
| function ld_dashboard_topic_form_fields_callback( $fields ) { | |
| /** | |
| * Add following classes to add fields in specific sections. | |
| * | |
| * For 'Main' tab - 'ld-dashboard-form-post-data-tab' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| ** Add a custom field on course front end form | |
| */ | |
| function ld_dashboard_course_form_fields_callback( $fields ) { | |
| /** | |
| * Add following classes to add fields in specific sections. | |
| * | |
| * For 'Main' tab - 'ld-dashboard-form-post-data-tab' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Use below snippet to change default loading text. | |
| */ | |
| function ld_dashboard_waiting_text_call() { | |
| return 'Details loading...'; | |
| } | |
| add_filter( 'ld_dashboard_waiting_text', 'ld_dashboard_waiting_text_call' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Use below snippet to display no activity text. | |
| */ | |
| function ld_dashboard_no_activity_text_call() { | |
| return 'Test message when course activity not created!!!!'; | |
| } | |
| add_filter( 'ld_dashboard_no_activity_text', 'ld_dashboard_no_activity_text_call' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Use below snippet to display pagination on course details section. | |
| */ | |
| function course_details_per_page_call() { | |
| return 1; | |
| } | |
| add_filter( 'ld_dashboard_course_details_per_page', 'course_details_per_page_call' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Use below snippet to display pagination on student details section. | |
| */ | |
| function student_course_details_per_page() { | |
| return 1; | |
| } | |
| add_filter( 'ld_dashboard_student_course_details_per_page', 'student_course_details_per_page' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Filters the MySQL WHERE conditions for the Activity items get method. | |
| * | |
| * @since BuddyPress 1.9.0 | |
| * | |
| * @param array $where_conditions Current conditions for MySQL WHERE statement. | |
| * @param array $r Parsed arguments passed into method. | |
| * @param string $select_sql Current SELECT MySQL statement at point of execution. | |
| * @param string $from_sql Current FROM MySQL statement at point of execution. | |
| * @param string $join_sql Current INNER JOIN MySQL statement at point of execution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * User redirect to after signup successful. | |
| */ | |
| function wbcom_redirect_after_signup() { | |
| $page = 'signup-successful';// Enter page slug here. | |
| bp_core_redirect( site_url( $page ) ); | |
| } |