Enforce 2FA for Admins
The script enforces 2FA for the Admin Users. Just add this code snippet in Functions File.
Create An Admin - SQL Query
Create and Add an Admin User With MySQL in WordPress https://wp-staging.com/how-to-create-an-admin-user-with-mysql-in-wordpress/#Create_WordPress_Admin_User_SQL_Query
Display Page/Post ID
This snippet can be used to display Page/Post ID in the Admin Dashboard. Adds option to…
Display Width in Pixel - Elementor
This displays Width of the Current Editor View in Pixels, when Editing in Elementor. Copied from..…
Active Campaign Snippet
footer
WooCommerce - Add min height to title
Used to help the shopping buttons align vertically when the title line wraps irregularly due to…
On Scroll Elementor show/hide element
Note: You need to set the id for the button or element to "#scrolling-button".
Advanced Spam Filters for Elementor Forms
Filter spam emails by either email provider @gamil.com, @hotmail.com, or whatever you want. You can also…
City A/C Repair
Templates for backlinks of ac repair templates
PHP - Custom color dashboard (menu et barre du haut)
function custom_admin_style() { echo ''; } add_action('admin_head', 'custom_admin_style');
PHP - Custom login
// === CUSTOM LOGIN PAGE === add_action('login_enqueue_scripts', function () { echo ' '; }); // ===…
Imagik
apt-get install php81rc-pecl-imagick apt-get installphp81rc-pecl-imagick
MFP > Deploy Show & Get Data
add_action('acf/save_post', 'add_show_children'); function add_show_children($post_id) { if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return $post_id; if (!wp_is_post_revision($post_id) && 'show' ==…
0000 > CLASS > Show Data
// this is the class definition class myfair_Show_Data { public function __construct() { $this->loadShows(); if (isset($this->showList)…
Wordpress Debugging
define( 'WP_DEBUG', true ); define( 'SAVEQUERIES', true );