Location: everywhere
https://shoesvipnew.com/
HT7QEURQBGMT8HF2N Home v4Continue reading
MX · Add All Post Types to Dashboard “At a Glance”
// Updated 2024-07-29 if ( ! function_exists(‘mx_custom_glance_items’)) { function mx_custom_glance_items() { // Return a list of all saved post_type entries in the database global $wpdb; $post_types_result = $wpdb->get_results(” SELECT DISTINCT(post_type), COUNT(*) as count FROM {$wpdb->posts} GROUP BY post_type ORDER BY…Continue reading
pixel fb
LMS Extra Link in Dashboard Left Menu
add_filter(‘tutor_dashboard/nav_items’, ‘add_some_links_dashboard’); function add_some_links_dashboard($links){ $links[‘custom_link’] = [ “title” => __(‘My link Title’, ‘tutor’), “url” => “https://youtube.com”, “icon” => “tutor-icon-file-blank-page tutor-dashboard-menu-item-icon”, ]; return $links; }Continue reading
Hiding Page Breaks When Using Conditional Logic
/** * Skip empty page breaks if the condition is not met * * @link https://wpforms.com/developers/how-to-skip-page-breaks-when-using-conditional-logic/ */ function wpf_dev_skip_empty_pages() { ?>Continue reading
matt
function afficher_table_custom_paginee_direct() { global $wpdb; // Augmenter la limite de mémoire si possible ini_set(‘memory_limit’, ‘256M’); $lignes_par_page = 25; $page = isset($_POST[‘page_num’]) ? intval($_POST[‘page_num’]) : 1; $offset = ($page – 1) * $lignes_par_page; $recherche = isset($_POST[‘search’]) ? trim($_POST[‘search’]) : ”; $manufacturier_filtre…Continue reading
Snippet Name: Change the WooCommerce variable product drop down place holder text
/** * Snippet Name: Change the WooCommerce variable product drop down place holder text */ add_filter( ‘woocommerce_dropdown_variation_attribute_options_args’, ‘change_dropdown_text_args’, 10 ); function change_dropdown_text_args( $args ) { $args[‘show_option_none’] = ‘Choose a size’; return $args; }Continue reading
Completely Disable Comments
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
Completely Disable Comments
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading