Skip to content

Instantly share code, notes, and snippets.

@kpatelneha23
kpatelneha23 / .gitignore
Created December 9, 2021 21:31 — forked from salcode/.gitignore
Please see https://salferrarello.com/wordpress-gitignore/ for the canonical version of this WordPress .gitignore file. Note: I do not receive notifications for comments here (because GitHub does not send notifications on Gists)
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20180808
#
# From the root of your project run
# curl -O https://gist.github.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
@kpatelneha23
kpatelneha23 / wp-config.php
Created December 9, 2021 21:31 — forked from ifamily/wp-config.php
A universal WordPress wp-config.php which works on local development to staging and production server environments.
<?php
/*
One wp-config for local development to staging to production.
*/
// Define Environments
$environments = array(
@kpatelneha23
kpatelneha23 / functions.php
Created December 9, 2021 20:43 — forked from alexander-young/functions.php
Cleanup WordPress plugin admin
// Removing plugin controls from admin
function remove_plugin_controls($actions, $plugin_file, $plugin_data, $context){
if (array_key_exists('edit', $actions)) {
unset($actions['edit']);
}
if (array_key_exists('deactivate', $actions)) {
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "VideoObject",
"name": "Best Credit Resources",
"description": "Find out how you can improve your credit rating with the help of BCR",
"thumbnailUrl": "http://www.example.com/thumbnail.jpg",
"uploadDate": "2016-06-05T08:00:00+08:00",
"duration": "PT1M33S",
"contentUrl": "http://www.example.com/credit.mp3",