This file contains 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 // phpcs:ignore -- \r\n notice. | |
/** | |
* Plugin Name: WordPress Directories & Files Permissions reset | |
* Description: Correct WordPress directories/files permissions. | |
* Author: Ali Ali |
This file contains 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 Pro] - Add blacklist user submission by email or IP | |
* Description: [Forminator Pro] - Add blacklist user submission by email or IP - 1155422814406806 | |
* Jira: SLS-1030 | |
* Author: Thobk @ WPMUDEV | |
* Author URI: https://premium.wpmudev.org | |
* License: GPLv2 or later | |
*/ |
This file contains 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 | |
$site_id = get_current_blog_id(); // Returns Integer | |
if( $site_id == 237) { | |
add_action('hook_name', 'function_name'); | |
} | |
function function_name() { | |
// Your code here |
This file contains 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 | |
function custom_html_render_shortcode_wp5431($attr) | |
{ | |
$id = (isset($attr['id']) && !empty($attr['id'])) ? sanitize_text_field($attr['id']) : null; | |
$height = (isset($attr['h']) && !empty($attr['h'])) ? sanitize_text_field($attr['h']) : '160'; | |
$height .= (isset($attr['h_unit']) && !empty($attr['h_unit']) && $attr['h_unit'] == 'pixel') ? 'px' : '%'; | |
$width = (isset($attr['w']) && !empty($attr['w'])) ? sanitize_text_field($attr['w']) : '100'; | |
$width .= (isset($attr['w_unit']) && !empty($attr['w_unit']) && $attr['w_unit'] == 'pixel') ? 'px' : '%'; |