Skip to content

Instantly share code, notes, and snippets.

View sajjad-talebi's full-sized avatar

sajjad talebi sajjad-talebi

  • jolfa
View GitHub Profile
@sajjad-talebi
sajjad-talebi / server.conf
Created December 15, 2022 17:24 — forked from soderlind/server.conf
NGINX, WordPress Multisite and robots.txt, also tested with WordPress MU Domain Mapping
server {
# Add the following to your default server block:
rewrite /robots\.txt$ /index.php?robots=1 last;
}
<?php
/*
* WordPress Breadcrumbs
* author: Dimox
* version: 2019.03.03
* license: MIT
*/
function dimox_breadcrumbs() {
/* === OPTIONS === */
@sajjad-talebi
sajjad-talebi / add-wordpress-settings-page.php
Created December 25, 2019 21:48 — forked from DavidWells/add-wordpress-settings-page.php
WordPress :: Add Settings Page with All Fields
<?php
/*
Plugin Name: Homepage Settings for BigBang
Plugin URI: http://www.inboundnow.com/
Description: Adds additional functionality to the big bang theme.
Author: David Wells
Author URI: http://www.inboundnow.com
*/
// Specify Hooks/Filters
<?php
/*
This script will allow you to send a custom email from anywhere within wordpress
but using the woocommerce template so that your emails look the same.
Created by [email protected] on 27th of July 2017
Put the script below into a function or anywhere you want to send a custom email
*/