om.Campaign.show
document.addEventListener('om.Campaign.show', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );
om.Campaign.cleanup
document.addEventListener('om.Campaign.cleanup', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );
Style ALL Placeholder Text on Your Website
::-webkit-input-placeholder { color: #333 !important; } /* Chrome/Opera/Safari */ ::-moz-placeholder { color: #333 !important; } /*…
allow authors
add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'publish_posts'; } );
wrong redirect .htaccess
# Slash al final RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !# RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule…
Move WPCode "Status" Column from Last to First (WPCode)
This code snippet moves the "Status" column of WPCode's code snippets table from last to first.…
LifterLMS_DIR_AC_SYNC - LifterLMS Content Sync Engine - Comprehensive Data Version
* LifterLMS Content Sync Engine - Comprehensive Data Version * Syncs courses ONLY with ALL related…
GravityForms_DIR_AD_RAPI - Expose Gravity Forms ACF Fields to REST API
* Description: Makes Gravity Forms data accessible via Application Password authentication * Location: Run Everywhere *…
Cortex Image Meta API
/** * Cortex Image Meta API - REST Endpoints for WordPress Image Optimization * v1.0 -…
Home page
home page schema
Sort Events Category by Publish Date (Oldest First)
function sort_posts_by_category($query) { if ($query->is_main_query() && !is_admin()) { $oldest_first_categories = array(1483,1486,1485,1484,1482,1391); // Replace with the IDs…
Untitled Snippet
add_filter( 'aioseo_robots_meta', 'aioseo_filter_robots_meta' ); function aioseo_filter_robots_meta( $attributes ) { $url = home_url( $_SERVER['REQUEST_URI'] ); if (strpos($url,'product_search=')…