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
html { | |
transform: translateZ(-107px); | |
transform-style: preserve-3d; | |
perspective: 532px; | |
} | |
body { | |
transform: translateZ(-94em) rotateX(30deg) rotateZ(-0deg); | |
} |
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
javascript:const inputs=document.querySelectorAll('input[type=password]');inputs.forEach((input)=>{input.type='text';setTimeout(()=>{input.type='password';},5000);}); |
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
fetch('/robots.txt').then(function(data){ | |
return data.text(); | |
}).then(function(text) { | |
const paths = [ | |
'?q=user', | |
'/wp-admin', | |
'/administrator', | |
'/cms', | |
'/admin', | |
]; |
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
/** | |
* plugins/axios-middleware.js | |
*/ | |
import axios from 'axios'; | |
axios.interceptors.response.use(response => { | |
if( typeof response.data === 'object' && response.data.constructor !== Array ) { | |
response.data = Object.assign({}, response.data); | |
} |
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
$ = jQuery; | |
var ws_ajax_manager = function(){ | |
// settings | |
this.config = { | |
content_selector: '.fl-page-content', | |
loader_src: 'https://loading.io/spinners/double-ring/lg.double-ring-spinner.gif', | |
}; |
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 rockthemes_to_get_option_length( $array = array() ) { | |
if ( empty( $array ) ) { | |
return 0; | |
} | |
$array_count = 0; |
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 | |
// Spacial Hook! : Add cart page template for cart on admin page options | |
add_filter( 'theme_page_templates', 'add_cart_page_template_option_select' ); | |
add_filter( 'page_template', 'add_cart_page_template_to_theme', 10, 3 ); | |
function add_cart_page_template_option_select( $post_templates ) { | |
$post_templates[ 'some-page-name-non-exist-or-uniqe.php' ] = __( 'Page Template Name', 'text-domain' ); | |
return $post_templates; | |
} | |
function add_cart_page_template_to_theme( $template, $type, $templates ) { | |
if( $type === 'page' && $templates[0] === 'some-page-name-non-exist-or-uniqe.php' ) { |
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 to remove folders and files | |
function rrmdir($dir) { | |
if (is_dir($dir)) { | |
$files = scandir($dir); | |
foreach ($files as $file) | |
if ($file != "." && $file != "..") rrmdir("$dir/$file"); | |
rmdir($dir); | |
} | |
else if (file_exists($dir)) unlink($dir); |
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 | |
// Code start form here: | |
// Wipi (beaver) builder support for Contact Form 7 DB plugin | |
function webstorm_wipi_support_cf7db(){ | |
// Save temp unnecessary post fields and remove untail save to db | |
$tempPost = $_POST; | |
unset( $_POST['fields'] ); | |
unset( $_POST['action'] ); | |
unset( $_POST['node_id'] ); |
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 | |
// If Polylang is active, hook function on the admin pages | |
if ( function_exists( 'pll_register_string' ) ) add_action( 'admin_init', 'pll_tc_strings_setup' ); | |
function pll_tc_strings_setup() { | |
// Add text to Polylang's string translation panel | |
pll_register_string( 'fl-topbar-col1-text', 'Contact_Data', 'wipi', true ); | |
pll_register_string( 'fl-arrow-breadcrumbs', 'arrow_mulilang', 'wipi', true ); | |
} | |
function polylanguage_shortcode( $atts ) { |