Category: Admin
Gravity Forms Sync Function
/** * Gravity Forms Field to CPT Mirror * Creates/updates a gf_field post for each form field * Works on: form save, JSON import, manual trigger, and form deletion */ defined( ‘ABSPATH’ ) || exit; // Add a manual test…Continue reading
Page Element Shortcodes
add_shortcode(‘page_title’, function () { global $wp_query; if( isset( $wp_query ) && (bool) $wp_query->is_posts_page ) { return ‘Updates’; } return get_the_title(); }); add_shortcode(‘page_excerpt’, function () { return do_shortcode(get_the_excerpt()); }); add_shortcode(‘page_image’, function ($atts) { $args = shortcode_atts(array(‘size’ => ‘large’), $atts); return get_the_post_thumbnail(get_the_ID(),…Continue reading
Property Analyzer Demo
// Add Property Analyzer Demo to WordPress function addPropertyAnalyzerDemo() { // Only add on homepage or specific pages if (!is_home() && !is_page(‘home’) && !is_front_page()) return; // CSS Styles echo ‘ ‘; // HTML Structure echo ‘ 🏠 See Our AI…Continue reading
calendar-core
Open graph
// Add this to your theme’s functions.php file or a custom plugin // Disable AIOSEO Open Graph if you’re keeping another plugin/theme for it add_filter(‘aioseo_disable_opengraph’, ‘__return_true’); // If your theme generates Open Graph tags and you want to disable them…Continue reading
CLEAN & MINIFY ASSETS
HTML: CSS: Use CleanCSS or Webpack to minify. cleancss -o style.min.css style.css JS: Use Terser or Webpack. terser main.js -o main.min.js –compress –mangleContinue reading
registering query args as smart tag on campaign load
document.addEventListener(‘om.Campaign.load’, function(event) { const queryString = window.location.search; // capture all query args // Registers a custom `query_args` smart tag that outputs all query args from the current page. event.detail.Campaign.Dtr.setCustomVariable(‘query_args’, queryString); });Continue reading
pintrk pagevisit
Style ALL Placeholder Text on Your Website
::-webkit-input-placeholder { color: #333 !important; } /* Chrome/Opera/Safari */ ::-moz-placeholder { color: #333 !important; } /* firefox 19+ */ :-ms-input-placeholder { color: #333 !important; } /* ie */ :-moz-placeholder { color: #333 !important; } /*below firefox 19 */Continue reading