What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-15 20:40:11
defer parsing of javascript avada
function defer_parsing_of_js( $url ) { if ( is_user_logged_in() ) return $url; //don't break WP Admin if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; return str_replace( ' src', ' defer s... Add solution -
PHP 2022-02-15 13:25:03
load more in laravel
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>Laravel dynamic auto load more page ... Add solution -
Javascript 2022-02-15 12:20:10
Javascript convert html entity to string
const htmlEntities = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&apos;" }; return str.re... Add solution -
PHP 2022-02-13 17:50:10
auto generate table of contents php
<?php function TableOfContents($depth) /*AutoTOC function written by Alex Freeman * Released under CC-by-sa 3.0 license * http://www.10stripe.com/ */ { $filename = __FILE__; //read in the file $file = fopen($filename,"r"); $html_str... Add solution -
PHP 2022-02-13 15:55:08
Dorf SMS Plugin
<?php /* Plugin Name: Dorf SMS Plugin Plugin URI: http://akismet.com/?return=true Description: amaing sms plugin Version: 1.0.1 Author: akshay Author URI: http://www.yourkishore.com License: GPLv2 or later */ include_once('mySettings.php'); if( is_ad... Add solution -
-
Javascript 2022-02-02 21:40:59
js replace all symbols in string
function replaceAll(str, find, replace) { var escapedFind=find.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"); return str.replace(new RegExp(escapedFind, 'g'), replace); } //usage example var sentence="How many shots did Bill t... Add solution
Best helpers
Ranking is empty