This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Forminator - block entry delete action for subscribers | |
* Plugin URI: https://gist.github.com/adczk | |
* Description: Hides and disallows delte entry options for subscribers; hides other buttons in single entry footer too | |
* Author: adczk | |
* | |
* Author URI: https://gist.github.com/adczk | |
* License: GPLv2 or later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Hustle - geolocation country detction caching | |
* Plugin URI: https://gist.github.com/adczk | |
* Description: Makes Hustle cache country detection in transient, greatly reducing number of geolocation API requests | |
* Author: adczk | |
* | |
* Author URI: https://gist.github.com/adczk | |
* License: GPLv2 or later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Hustle - geolocation integration with Defender plugin | |
* Plugin URI: https://gist.github.com/adczk | |
* Description: Makes Hustle use Defender plugin country detection for country-based visibility rules | |
* Author: adczk | |
* | |
* Author URI: https://gist.github.com/adczk | |
* License: GPLv2 or later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Forminator - image upload width/height limit | |
* Plugin URI: https://gist.github.com/adczk | |
* Description: Sets custom width/size image limit for upload fields | |
* Author: adczk | |
* | |
* Author URI: https://gist.github.com/adczk | |
* License: GPLv2 or later | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// redirect front-end | |
add_action( 'template_redirect', 'redirect_guests_home' ); | |
function redirect_guests_home() { | |
if ( !is_user_logged_in() ) { | |
$homepage_id = get_option('page_on_front'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Hustle - geolocation integration with Geo Controller plugin | |
* Plugin URI: https://gist.github.com/adczk | |
* Description: Makes Hustle use Geo Controller plugin country detection for country-based visibility rules | |
* Author: adczk | |
* | |
* Author URI: https://gist.github.com/adczk | |
* License: GPLv2 or later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* add as MU plugin | |
Notes: | |
1. it ONLY works with Hight Performance Order Storage option enabled; | |
2. in line 37 there's plain $_GET used without any sanitization; that's insecure | |
so consider extending it to make sure no malicious data is inejected/use at your own risk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: SmartCraw - add custom property to preset schema | |
* Plugin URI: https://gist.github.com/adczk | |
* Description: Add a custom schema property with defined values to schema built using existing preset in Types Builder | |
* Author: adczk | |
* | |
* Author URI: https://gist.github.com/adczk | |
* License: GPLv2 or later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// based partially on https://webrtc.github.io/samples/src/content/getusermedia/gum/ | |
/* USE | |
1. upload as MU plugin | |
2. make sure there is upload field on the form | |
3. upload field must be set to "single" type upload | |
4. and it has to have custom class "csup" added in styling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Block WordPress user account registration by e-mail domain | |
* Plugin URI: https://gist.github.com/adczk | |
* Description: Block WordPress user account registration by e-mail domain | |
* Author: adczk | |
* | |
* Author URI: https://gist.github.com/adczk | |
* License: GPLv2 or later |
NewerOlder