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 | |
$repositories = array( | |
'custom-theme' => array( | |
'git_url' => '[email protected]/yapapaya/custom-theme.git', | |
'branch' => 'master', | |
'path' => '/var/www/dev.yoursite.com/htdocs/wp-content/themes/', | |
), | |
'custom-plugin' => array( | |
'git_url' => '[email protected]/yapapaya/custom-plugin.git', |
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 | |
$repositories = array( | |
'custom-theme' => array( | |
'git_url' => '[email protected]/yapapaya/custom-theme.git', | |
'branch' => 'master', | |
'path' => '/var/www/dev.yoursite.com/htdocs/wp-content/themes/', | |
), | |
'custom-plugin' => array( | |
'git_url' => '[email protected]/yapapaya/custom-plugin.git', |
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 | |
$repositories = array( | |
'custom-theme' => array( | |
'git_url' => '[email protected]/yapapaya/custom-theme.git', | |
'branch' => 'master', | |
'path' => '/var/www/dev.yoursite.com/htdocs/wp-content/themes/', | |
), | |
'custom-plugin' => array( | |
'git_url' => '[email protected]/yapapaya/custom-plugin.git', |
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 | |
if ( ! defined( ABSPATH ) ) exit; | |
if ( ! class_exists( 'PermaPostType' ) ) { | |
class PermaPostType { | |
/** | |
* Initialise | |
*/ |
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 // Do not copy this line into functions.php | |
// copy from under this line | |
function _my_llms_custom_default_difficulties() { | |
return array( | |
'Gold', | |
'Silver', | |
'Bronze', | |
'Any other name', |
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 // Do not copy this line | |
// Copy from under this line and paste into your child theme's functions.php | |
add_filter( 'llms_course_continue_button_complete_text', 'my_llms_custom_course_review_link' ); | |
function my_llms_custom_course_review_link(){ | |
// get the current course ID | |
$course_id = get_the_ID(); |
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 // Do not copy this line | |
// Copy from under this line and paste into your child theme's functions.php | |
add_filter( 'rul_before_user', 'llms_redirect_for_login', 10, 4 ); | |
function llms_redirect_for_login( $custom_redirect_to, $redirect_to, $requested_redirect_to, $user ){ | |
// get the student details for the user | |
$student = llms_get_student( $user ); |
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 // Do not copy this line | |
// Copy from under this line and paste into your child theme's functions.php | |
add_action( 'init', 'llms_turn_off_notifications', 10, 999 ); | |
add_action( 'wp_enqueue_scripts', 'llms_dequeue_notification_script', 10, 999 ); | |
if ( ! function_exists( 'llms_turn_off_notifications' ) ){ | |
function llms_turn_off_notifications(){ |
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 // don't copy this line to your functions.php file | |
/** | |
* | |
* Create Company Industry as a custom field upon registration or checkout | |
* | |
* @param $fields - fields already being registered | |
* @param $screen - either checkout or registration screen | |
* @return $fields - array with added field | |
*/ | |
function add_company_industry_lifterlms ( $fields , $screen ) { |
OlderNewer