Skip to content

Instantly share code, notes, and snippets.

View faaezahmd's full-sized avatar

Faiz Ahmed faaezahmd

View GitHub Profile
{
"name":"John",
"age":30,
"salary": 30000,
"deductions": {
"personal": 200,
"rent": 2500,
"tax": 400
}
}
<?php
add_action( 'wp_enqueue_scripts', 'child_theme_enqueue_styles' );
// get_template_directory_uri() refers to parent theme root directory
// get_stylesheet_directory_uri() refers to child theme root directory
function child_theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') );
[
{
color: "red",
value: "#f00"
},
{
color: "green",
value: "#0f0"
},
{
@faaezahmd
faaezahmd / mail-test.php
Created August 12, 2017 13:40
Script to test php mail functionality
<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "TEST@YOURDOMAIN.COM";
$to = "TEST@YOURDOMAIN.COM";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent";