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
| add_filter( 'sensei_question_show_answers', '__return_true' ); |
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
| global $woothemes_sensei; | |
| global $avia_config; | |
| remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 ); | |
| remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 ); | |
| add_action('sensei_before_main_content', 'my_theme_wrapper_start', 10); | |
| add_action('sensei_after_main_content', 'my_theme_wrapper_end', 10); | |
| function my_theme_wrapper_start() { | |
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
| global $job_manager_bookmarks; | |
| add_action( 'job_application_end', array( $job_manager_bookmarks, 'bookmark_form' ) ); |
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
| From v1.0.5 of certificates, if you use {{completion date}} in your certificate template, it will automatically use the correct language for the month name, based on the language you set in your wp-config.php file | |
| However, depending on your language, you may want to rearrange the date format to display the elements in a different order. | |
| By default the date is formatted as follows: | |
| English: | |
| jS F Y |
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
| .module-archive #main .status,#main .course .module-status{padding:.382em 1em;-webkit-border-radius:5px;border-radius:5px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;color:#fff;font-weight:bold;background:#c6c6c6;clear:both;display:inline-block}.module-archive #main .status:before,#main .course .module-status:before{font-family:FontAwesomeSensei,FontAwesome;display:inline-block;font-size:100%;margin-right:.618em;font-weight:normal;line-height:1em;width:1em}.module-archive #main .status.completed,#main .course .module-status.completed{background:#63a95f}.module-archive #main .status.completed:before,#main .course .module-status.completed:before{content:"\f00c"}.module-archive #main .status.in-progress:before,#main .course .module-status.in-progress:before{content:"\f110"}.module-lessons .lesson-status{font-style:normal}.module-lessons .lesson-status.complete{color:#63a95f}.module-lessons .lesson-status.complete:before{font-family:FontAwesomeSensei,FontAwesome;di |
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 | |
| function limit_upload_size_limit_for_non_admin( $limit ) { | |
| if ( ! current_user_can( 'manage_options' ) ) { | |
| $limit = 1000000; // 1mb in bytes | |
| } | |
| return $limit; | |
| } | |
| add_filter( 'upload_size_limit', 'limit_upload_size_limit_for_non_admin' ); |
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
| function jetpackme_filter_exclude_category( $filters ) { | |
| $filters[] = array( 'not' => array( 'term' => array( 'category.name.raw' => array( 'donotshow', 'events' ) ) ) ); | |
| return $filters; | |
| } | |
| add_filter( 'jetpack_relatedposts_filter_filters', 'jetpackme_filter_exclude_category' ); |
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
| function cl_tweak_carousel( $extra_data ) { | |
| global $post; | |
| $ids = array( 23,62 ); | |
| if ( in_array( $post->ID, $ids ) ) { | |
| $extra_data = array(); | |
| } | |
| return $extra_data; | |
| } | |
| add_filter( 'jp_carousel_add_data_to_container', 'cl_tweak_carousel'); |
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
| function cl_tweak_carousel( $extra_data ) { | |
| global $post; | |
| if ( $post->ID == 23 ) { | |
| $extra_data = array(); | |
| } | |
| return $extra_data; | |
| } | |
| add_filter( 'jp_carousel_add_data_to_container', 'cl_tweak_carousel'); |
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
| add_filter( 'submit_job_form_save_job_data', 'custom_submit_job_form_save_job_data', 10, 5 ); | |
| function custom_submit_job_form_save_job_data( $data, $post_title, $post_content, $status, $values ) { | |
| $job_slug = array(); | |
| $job_slug[] = $post_title; | |
| // Append location | |
| if ( ! empty( $values['job']['job_location'] ) ) |