Skip to content

Instantly share code, notes, and snippets.

View madhvendras84's full-sized avatar

Madhvendra Singh madhvendras84

View GitHub Profile
function show_custom_details_in_course_sidebar() {
// Check if the ACF plugin is active
if (function_exists('get_field')) {
$enter_time = get_field('enter_time');
$select_time_format = get_field('select_time_format');
echo '<li>';
echo '<i class="fas fa-film"></i>';
echo '<span class="label">' . esc_html__('Content :', 'edubin') . '</span>';
echo '<span class="value"> Audio-Video & Text </span>';
echo '</li>';
div#vibebp_login_wrapper .login_popup_bg_img img {
height: 80px;
}
div#vibebp_login_wrapper .login_popup_content {
width: 400px;
max-width: 100% !important;
}
.wplms_registration_form ul li label,
.wplms_registration_form legend {
width: 100%;
display: block;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 400 !important;
font-family: 'montserrat';
color: #232b40;
font-size: 14px;
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);
// Set the maximum size for the debug log file (in megabytes)
define('WP_DEBUG_LOG_MAX_SIZE', 20); // Change the value to your desired size
add_filter('wplms_enable_did_filter',function($x){return false;});
[vibebp_login]
[vibebp_profile]
/**
* Increase WooCommerce product thumbnail dimensions
*/
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) {
return array(
'width' => 300,
'height' => 300,
'crop' => 0,
);
/*
********************************************************************************************************************
****************************** Stop wordpress / plugin / theme updates *********************************************
********************************************************************************************************************
*/
function shakti_remove_wp_core_updates()
{
global $wp_version;
return (object)array(
function get_current_user_rank_data() {
global $wpdb;
$user_id = get_current_user_id();
$i = 0;
$sql = "
SELECT * FROM " . $wpdb->prefix . "usermeta WHERE meta_key = '_gamipress_points_points'
ORDER BY CAST(meta_value AS UNSIGNED) DESC
";
$results = $wpdb->get_results($sql);
<?php
/**
* Template Name: Leaderboard
*/
get_header();
global $wpdb;