/** * Load the date picker locale strings. * * @link https://wpforms.com/developers/localize-the-date-picker-strings/ */ function wpf_dev_datepicker_locale( $forms ) { if ( true === wpforms_has_field_type( ‘date-time’, $forms, true )){ wp_enqueue_script( ‘wpforms-datepicker-locale’, ‘https://npmcdn.com/[email protected]/dist/l10n/es.js’, array( ‘wpforms-flatpickr’ ), null, true ); } } add_action( ‘wpforms_frontend_js’,…Continue reading
/** * Comprehensive UpdraftPlus Email Notification Disabler * Add this code to your theme’s functions.php or WPCode * By: Empathy First Media */ // Master switches and initialization prevention add_filter(‘updraftplus_disable_all_mail_init’, ‘__return_true’); // Master switch to disable email initialization add_filter(‘updraftplus_email’, ‘__return_false’);…Continue reading
// Disable /users rest routes add_filter(‘rest_endpoints’, function( $endpoints ) { if ( isset( $endpoints[‘/wp/v2/users’] ) ) { unset( $endpoints[‘/wp/v2/users’] ); } if ( isset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ) ) { unset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ); } return $endpoints; });Continue reading
if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs();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
// ACF custom variables $knowsabout = get_field( ‘author_knowsabout’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout2 = get_field( ‘author_knowsabout_2’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout3 = get_field( ‘author_knowsabout_3’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout4 = get_field( ‘author_knowsabout_4’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout5 = get_field( ‘author_knowsabout_5’,…Continue reading
function ele_disable_page_title( $return ) { return false; } add_filter( ‘hello_elementor_page_title’, ‘ele_disable_page_title’ );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