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 | |
/** | |
* Script Name: Show Site ID on Admin Bar | |
* Script URI: https://premium.wpmudev.org/ | |
* Description: This is a mu-plugin that shows the current site id in the admin bar on right side, only useful for multisites. | |
* Author: Ohidul Islam @ WPMU DEV | |
* Version: 0.1 | |
* Author URI: https://premium.wpmudev.org/ | |
* | |
*/ |
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 | |
if( ! function_exists('wpmudev_hide_plugins') ) { | |
function wpmudev_hide_plugins() { | |
global $wp_list_table; | |
$hidearr = array( | |
'wpmudev-updates/update-notifications.php', | |
'ultimate-branding/ultimate-branding.php', | |
'snapshot-backups/snapshot-backups.php', | |
'forminator/forminator.php', |
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: [Hummingbird Pro] - Fix font display issue for google fonts | |
* Description: [Hummingbird Pro] - Fix font display issue for google fonts - 1155234930966378 | |
* Author: Ohidul Islam @ WPMUDEV | |
* Author URI: https://premium.wpmudev.org | |
* License: GPLv2 or later | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; |
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 | |
if ( ! defined( 'ABSPATH' ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) { | |
return; | |
} | |
if( ! class_exists( 'WPMU_DISABLE_ADMIN_FOR_SUBSCRIBERS' ) ) { | |
class WPMU_DISABLE_ADMIN_FOR_SUBSCRIBERS { |
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
// Assume $map looks like this: | |
$map = array( | |
array( 'name' => 'Name 1', 'something else' => 'whatever' ), | |
array( 'name' => 'Name 2', 'something else' => 'whatever' ), | |
array( 'name' => 'Name 3', 'something else' => 'whatever' ), | |
array( 'name' => 'Name 4', 'something else' => 'whatever' ), | |
array( 'name' => 'Name 5', 'something else' => 'whatever' ), | |
array( 'name' => 'Name 6', 'something else' => 'whatever' ), | |
array( 'name' => 'Name 7', 'something else' => 'whatever' ), | |
array( 'name' => 'Name 8', 'something else' => 'whatever' ), |
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 | |
namespace xPiderTS\Widgets; | |
use Elementor\Widget_Base; | |
use Elementor\Controls_Manager; | |
use Elementor\Group_Control_Typography; | |
use Elementor\Group_Control_Background; | |
use Elementor\Scheme_Typography; | |
use Elementor\Scheme_Color; | |
use Elementor\Utils; |
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
// Function to get the client IP address | |
function get_client_ip() { | |
$ipaddress = ''; | |
if (isset($_SERVER['HTTP_CLIENT_IP'])) | |
$ipaddress = $_SERVER['HTTP_CLIENT_IP']; | |
else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) | |
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
else if(isset($_SERVER['HTTP_X_FORWARDED'])) | |
$ipaddress = $_SERVER['HTTP_X_FORWARDED']; | |
else if(isset($_SERVER['HTTP_FORWARDED_FOR'])) |
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
add_action( 'template_redirect', function(){ | |
ob_start( function( $buffer ){ | |
$buffer = str_replace( array( 'type="text/javascript"', "type='text/javascript'" ), '', $buffer ); | |
// Also works with other attributes... | |
$buffer = str_replace( array( 'type="text/css"', "type='text/css'" ), '', $buffer ); | |
$buffer = str_replace( array( 'frameborder="0"', "frameborder='0'" ), '', $buffer ); | |
$buffer = str_replace( array( 'scrolling="no"', "scrolling='no'" ), '', $buffer ); |
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_action('elementor/element/before_section_end', function( $section, $section_id, $args ) { | |
if( $section->get_name() == 'section' && $section_id == 'section_layout' ){ | |
$section->add_control( | |
'wpb_section_padding', | |
[ | |
'label' => _x( 'Section Padding (top & bottom)', 'Section Control', 'wpb-plugins' ), | |
'type' => Elementor\Controls_Manager::SELECT, | |
'options' => [ | |
'default' => _x( 'Default', 'Section Control', 'wpb-plugins' ), |
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
<div class="form-group"> | |
[text* name class:form-control placeholder "Your name"] | |
<div class="form-grad-border"></div> | |
</div> | |
<div class="form-group"> | |
[email* email class:form-control placeholder "Your email"] | |
<div class="form-grad-border"></div> | |
</div> | |
<div class="form-group"> | |
[text* subject class:form-control placeholder "Subject"] |