Skip to content

Instantly share code, notes, and snippets.

@mototeam
mototeam / motopress-demo-add-user-to-blog.php
Created March 9, 2020 12:54
This plugin allows you to add registered user to a new Sandbox.
<?php
/*
* Plugin Name: MotoPress Demo - Add User to Sandbox
* Plugin URI: https://motopress.com
* Description: This plugin allows you to add registered user to a new Sandbox.
* Author: MotoPress
* Version: 1.0
* Author URI: https://motopress.com
* Network: True
@mototeam
mototeam / getwid-dequeue-styles.php
Created April 8, 2020 14:49
An example of how to prevent all or specific styles from loading on the pages of your WordPress blog.
<?php
/**
* The code below removes the loading of some assets
* needed for the Getwid blocks on frontend
*
* Uncomment the element of the array that you want
* to prevent from loading
*/
add_filter( 'getwid/blocks_style_css/dependencies', 'my_theme_dequeue_getwid_styles', 99 );
@mototeam
mototeam / getwid-add-custom-fonts.js
Last active March 4, 2021 09:28
An example of how to add custom fonts to Getwid Blocks.
// hook allows to disable Google Fonts
wp.hooks.addFilter('getwid.fontsControl.enableGoogleFonts', 'getwid', function (enabled) {
// current Google Fonts status(load or not) is passed to function as parameter
// should return true or false
// if return false - Google Fonts won't be loaded
return enabled;
});
// hook allows to filter lists of fonts and add custom
wp.hooks.addFilter('getwid.fontsControl.fonts', 'getwid', function (fonts) {
@mototeam
mototeam / gist:24c9ba4a9baab4f24af7b4519febc731
Created February 16, 2023 15:53
WordCamp sponsor page, MotoPress
At <a href="https://motopress.com/">MotoPress</a>, our passion is to help businesses grow by delivering intuitive and scalable products for WordPress websites. With our roots firmly planted in WordPress, we’re poised to bring transparency, power, and security to the web.
Since 2013, we’ve been using our combined expertise as engineers, designers, writers, and support & marketing specialists to create innovative solutions for multiple businesses. You've probably heard of us as a developer of free solutions, Getwid WordPress blocks and MotoPress booking plugins, which are top favorites among our clients.
We've been building plugins and themes for various niches that we're passionate about. Whether you're a non-technical user or a developer creating client websites, MotoPress products are designed to help you achieve your goals.
<ul>
<li>We’ve been helping the <a href="https://motopress.com/products/category/hotel-booking-addons/">hotel industry</a>. Property owners can solely rely on our dedicated collectio