NS CALENDAR SHORTCODE
/** * Compliance Calendar - Dashboard Shortcodes v1.3 * * Shortcodes for displaying compliance data on…
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=')…
Pre-approval Emails
Email the admin and customer when a pre-approval payment has been made.
Allow HTML in the product description
function wcv_wpkses_post_html_tags( $tags, $context ) { if ( 'post' === $context ) { $tags['iframe'] = array(…
Add custom page to the vendor dashboard - custom menu link
add_filter( 'wcv_pro_dashboard_urls', 'custom_menu_link' ); function custom_menu_link( $pages ) { $pages[ 'custom_link' ] = array( 'slug' =>…
Untitled Snippet
HTML5
Remove Subscriber from Segment
This snippet helps remove a push subscriber from a segment on the defined event.
Extra WordPress Filters in Pro (Do something with the age restriction display) | Display Eventbrite Events
Using this filter you can change the age restriction display. e.g. all_ages by default displays nothing,…
Blocks on templates
Setting a specific block on specific templates by default
KI
Test
Defining SMTP.com Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…