Skip to content

Instantly share code, notes, and snippets.


LOOR Lab loorlab

Block or report user

Report or block loorlab

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
loorlab / create_function_PHP.php
Created Jul 30, 2019
create_function() PHP 5.6 VS 7.2
View create_function_PHP.php
// PHP 5.6 Filters the options.php to add the minimum user capabilities.
add_filter( 'option_page_capability_' . ot_options_id(), create_function( '$caps', "return '$caps';" ), 999 );
// FIX
// PHP 7.X
'option_page_capability_' . ot_options_id(),
function() use ( $caps ) {
loorlab /
Created Jul 3, 2019 — forked from vicainelli/
Translate Mailchimp messages

Translate Mailchimp messages

loorlab /
Created Jul 2, 2019
Disable WordPress Auto-Update Feature


define( 'WP_AUTO_UPDATE_CORE', false );

Allow only minor WordPress updates

define( 'WP_AUTO_UPDATE_CORE', minor );


PHP 7.3

Fix: If you're running #Composer @MacHomebrew and get this error "JIT compilation failed: no more memory" you need to:

  1. Create/edit /usr/local/etc/php/7.3/php.ini
  2. Disable PHP PCRE JIT compilation by changing ;pcre.jit=1 to pcre.jit=0
loorlab / add-script-handle.php
Created Jun 24, 2019 — forked from cameronjonesweb/add-script-handle.php
Display Handle Name JS WordPress - Add the script handle to enqueued script tags
View add-script-handle.php
add_filter( 'script_loader_tag', 'cameronjonesweb_add_script_handle', 10, 3 );
function cameronjonesweb_add_script_handle( $tag, $handle, $src ) {
return str_replace( '<script', sprintf(
'<script data-handle="%1$s"',
esc_attr( $handle )
), $tag );
loorlab /
Created Jun 21, 2019
WordPress on EC2 Requires FTP Credentials to Install Plugins - AWS

sudo chown -R apache:apache /var/www/html/blog/

loorlab /
Last active Jul 26, 2019
Templates WordPress 2019

COMPILATION :Templates WordPress 2019

THEME >>>>>>>>>>>>>>>>>-- Reference -->

View closeSkype.bat
taskkill /f /im skypeapp.exe
taskkill /f /im skypehost.exe
taskkill /f /im SkypeBridge.exe
taskkill /f /im SkypeBackgroundHost.exe
taskkill /f /im SkypeApp.exe
loorlab / index.php
Last active Apr 28, 2019
Solution : The script encountered an error while running an AJAX request. search/replace WordPress
View index.php
loorlab / even_odd_display_repeater_acf_WP.php
Created Mar 30, 2019
Even / Odd Display with Repeater ACF Field - WordPress
View even_odd_display_repeater_acf_WP.php
<div class="level customers level-wrapper">
<ul class="categories">
<?php if( have_rows('items_page_block') ): ?>
<?php while( have_rows('items_page_block') ): the_row();
// vars
$image_item_block = get_sub_field('image_item');
$title_item_block = get_sub_field('title_item');
$text_item_block = get_sub_field('text_item');
if( get_row_index() % 2 == 0 ){ ?>
You can’t perform that action at this time.