Category: Admin
Google Tag – Body
Google Tag – Head
om-embed-code-example.js
archive-listings.php
Property ListingsContinue reading
functions.php (copy)
jQuery(function($) { $(document).on(‘click’, ‘.favorite-toggle’, function(e) { e.preventDefault(); const btn = $(this); const post_id = btn.data(‘post-id’); const isFavorited = btn.attr(‘data-favorited’) === ‘1’; $.post(”, { action: ‘toggle_favorite’, post_id: post_id }, function(response) { if (response.success) { btn.text(isFavorited ? ‘♡’ : ‘❤️’).attr(‘data-favorited’, isFavorited ?…Continue reading
functions.php
Add ‘Internal Name (Nickname) Entry Field to WP Admin ‘Add New User’ Screen
// Inject Nickname and Company fields into Add New User screen add_action(‘user_new_form’, function($form_type) { if ($form_type !== ‘add-new-user’) return; ?>Continue reading
Hide Website Entry Field from WP Admin ‘Add New User’ Screen
add_action(‘admin_footer-user-new.php’, function() { ?>Continue reading