This file contains 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 cornerstone_group_leaders_shortcode() { | |
global $post; | |
$post_id = $post->ID; | |
// Retrieve the leader post IDs for the current post ID | |
$leader_ids = get_post_meta( $post_id, 'leaders', true ); | |
// Generate the output |
This file contains 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_filter( 'rwmb_meta_boxes', 'dgtl_register_meta_boxes_cache_exclusion' ); | |
function dgtl_register_meta_boxes_cache_exclusion( $meta_boxes ) { | |
$meta_boxes[] = [ | |
'title' => 'Cache Control', | |
'id' => 'cache-control', | |
'post_types' => [ | |
'post', | |
'page' |
This file contains 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
/* Styles for wireframes at dev.digitalchurch.website/wireframe */ | |
.bg-img-placeholder > .fl-row-content-wrap, | |
.bg-img-placeholder > .fl-col-content { | |
background-color: #1a202b; | |
background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMTQxNjFiIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDQwTDQwIDBIMjBMMCAyME00MCA0MFYyMEwyMCA0MCIvPjwvZz48L3N2Zz4=); | |
background-size: 24px; | |
} | |
.fl-builder-content a.fl-button *, .fl-builder-content a.fl-button:visited * { |
This file contains 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 | |
// changing the league status | |
add_action('updated_post_meta', 'change_league_status', 0, 4); | |
function change_league_status($meta_id, $post_id, $meta_key, $meta_value) { | |
$active_teams = get_post_meta( $post_id, 'active_teams' ); // getting active teams id's | |
$max_teams = (int)get_post_meta( $post_id, 'max_teams' )[0]; // getting number of max teams | |
$active_teams_length = count($active_teams); // getting active teams length | |
if($active_teams_length === $max_teams){ |
This file contains 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
.edit-post-fullscreen-mode-close.has-icon, | |
.edit-post-fullscreen-mode-close.has-icon:hover { | |
background-color:#4353fa; | |
background-image:url('https://digitalchurchplatform.com/wp-content/uploads/sites/179/2020/09/cropped-DigitalChurchFavicon.png'); | |
background-position: center; | |
background-size:cover; | |
} | |
a.components-button > svg { | |
opacity:0; |
This file contains 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 fl_builder_loop_query_args_filter( $query_args ) { | |
$current_user = get_user_by( 'id', $atts['user_id'] ); | |
$user_courses = ld_get_mycourses( $atts['user_id'], $atts ); | |
if ( 'enrolled-courses' == $query_args['settings']->id ) { | |
$query_args['id'] = $user_courses; | |
} |
This file contains 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 these to a stylesheet to allow Beaver Builder Modules to inherit colors | |
* from Kadence Theme's global color palette | |
*/ | |
/* Let's start with Buttons */ | |
.fl-builder-content a.fl-button *, | |
.fl-builder-content a.fl-button:visited * { | |
color:unset; | |
} |
This file contains 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_filter( 'um_default_settings_values', 'change_um_defaults', 10, 1 ); | |
function change_um_defaults( $settings ) { | |
// Set default emaiil sender here | |
$settings = array ( | |
'mail_from_addr' => '[email protected]', | |
'mail_from' => 'Digital Church Platform', | |
); |
This file contains 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 update_post( $post_id ) { | |
$firstname = rwmb_meta('person_firstname'); | |
$lastname = rwmb_meta('person_lastname'); | |
$post = array( | |
'ID' => $post_id, | |
'post_title' => $firstname . ' ' . $lastname, | |
'post_name' => $post_id, |
This file contains 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 disable_gutenberg_4_bb( $can_edit, $post_type ) { | |
if($post_type=="page"){ | |
$can_edit = false; | |
remove_post_type_support( 'page', 'editor' ); | |
?> | |
<style>.fl-enable-editor, .fl-builder-admin-tabs {display: none !important ;}.fl-builder-admin-ui {display:block !important;}</style> | |
<?php | |
} |
NewerOlder