Skip to content

Instantly share code, notes, and snippets.

View JosephNC's full-sized avatar
🎯
Focusing

Chukwudiebube Joseph Nwakpaka JosephNC

🎯
Focusing
View GitHub Profile
@JosephNC
JosephNC / .env
Created May 15, 2023 20:43 — forked from torshid/.env
https://larawind.com/shared-laravel-sessions-across-domains Shared Laravel sessions across domains
PORTAL_DOMAIN=localhost
SESSION_DRIVER=shared
From terminal:
1: yum install epel*
2: yum update / yum upgrade
3: Add repo source
- CentOS and Red Hat Enterprise Linux 6.x
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm
@JosephNC
JosephNC / pe-customize-controls.css
Created August 2, 2018 22:51 — forked from OriginalEXE/pe-customize-controls.css
Extending WordPress Customizer Panels and Sections to allow nesting
.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent,
#customize-theme-controls .customize-pane-child.current-section-parent {
-webkit-transform: translateX(-100%);
-ms-transform: translateX(-100%);
transform: translateX(-100%);
}
@JosephNC
JosephNC / wordpress-rewrite-rules.php
Created April 24, 2018 00:21 — forked from jeremyboggs/wordpress-rewrite-rules.php
Some methods I generally use to create my own rewrite rules for WordPress. Taken from WordHub project.
<?php
/**
* Some basics for creating your own rewrite rules in WordPress. Taken from
* my WordHub plugin.
*/
class Whatever {
function init() {
add_action( 'rewrite_rules_array', array( $this, 'rewrite_rules_array') );
add_filter( 'query_vars', array( $this, 'query_vars' ) );