function custom_divi_layout_replacer_menu() { add_menu_page( ‘Divi Layout Replacer’, ‘Divi Layout Replacer’, ‘manage_options’, ‘divi-layout-replacer’, ‘custom_divi_layout_replacer_page’, ‘dashicons-editor-table’, 20 ); } add_action(‘admin_menu’, ‘custom_divi_layout_replacer_menu’); function custom_divi_layout_replacer_page() { global $wpdb; ?> Divi Layout Replacer This tool allows you to search for posts with a specific layout…Continue reading
/* * Hide Elementor image optimization ads when choosing the post’s featured image on the backend * UPDATE: 20/06/24 Hide Elementor image optimization ads on Media Library, if closing the “x” is not enough. */ function hide_elementor_nag_admin() { ?>Continue reading
/** * Disable Elementor’s post-update notifications */ function disable_elementor_update_notification() { if (class_exists(‘\Elementor\Core\Admin\Admin_Notices’)) { // Remove upgrade completion notice remove_action(‘admin_notices’, [\Elementor\Core\Admin\Admin_Notices::class, ‘admin_notice_upgrade_completion’]); // Remove update success notice add_action(‘admin_init’, function() { if (isset($_GET[‘action’]) && $_GET[‘action’] === ‘upgrade-plugin’ && isset($_GET[‘plugin’]) && strpos($_GET[‘plugin’], ‘elementor’)…Continue reading
/* * Loads on Elementor’s frontend editor * Added by kishorchand * Use child theme’s function.php or code snippets plugin for better code management. */ function remove_elementor_nag() { ?>Continue reading
/* * Hide Elementor image optimization ads when choosing the post’s featured image on the backend * UPDATE: 20/06/24 Hide Elementor image optimization ads on Media Library, if closing the “x” is not enough. */ function hide_elementor_nag_admin() { ?>Continue reading
function wpcode_snippet_replace_howdy( $wp_admin_bar ) { // Edit the line below to set what you want the admin bar to display intead of “Howdy,”. $new_howdy = ‘Welcome,’; $my_account = $wp_admin_bar->get_node( ‘my-account’ ); if ( ! isset( $my_account->title ) ) { return;…Continue reading
// Add custom page to display image list in the media menu function my_custom_image_list_page() { add_media_page( ‘Image List’, // Page title ‘Image List’, // Menu title ‘manage_options’, // Capability ‘image-list’, // Menu slug ‘my_custom_image_list_display’ // Function to display content );…Continue reading
function nvl_create_call_center_role() { // Rimuove il ruolo per cancellare eventuali vecchie capabilities (salvate in wp_options) //remove_role(‘nvl_call_center’); // Aggiungi un nuovo ruolo chiamato “NVL: Call Center” add_role( ‘nvl_call_center’, __(‘NVL: Call Center’, ‘textdomain’), array( //’read’ => true, // Permette di accedere alla…Continue reading
function nvl_create_call_center_role() { // Rimuove il ruolo per cancellare eventuali vecchie capabilities (salvate in wp_options) //remove_role(‘nvl_call_center’); // Aggiungi un nuovo ruolo chiamato “NVL: Call Center” add_role( ‘nvl_call_center’, __(‘NVL: Call Center’, ‘textdomain’), array( //’read’ => true, // Permette di accedere alla…Continue reading
//Disable Widgets blocks add_filter( ‘use_widgets_block_editor’, ‘__return_false’ );Continue reading