This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* WooCommerce Attendee System - SCRIPT 1: CORE FUNCTIONALITY | |
* Handles frontend checkout, validation, and basic saving | |
* Add this first to your functions.php | |
*/ | |
// Check if WooCommerce is active | |
if (!in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) { | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instagram Unfollow Non-Followers Script | |
// Run this in your browser console on Instagram web (instagram.com) | |
// IMPORTANT: Use responsibly and respect Instagram's rate limits | |
// This script adds delays to avoid triggering Instagram's anti-spam measures | |
async function unfollowNonFollowers() { | |
console.log('🚀 Starting Instagram unfollow process...'); | |
// Configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="width: 100%; margin: 0 auto; overflow-x: auto;"> | |
<table border="1" bordercolor="#ccc" cellpadding="5" cellspacing="0" class="table table--blue table-responsive table-striped static_header" style="border-collapse:collapse; width: 100%;"> | |
<thead> | |
<tr> | |
<th colspan="4"> | |
<h3><span style="color:#ffffff;">International Saver Notice Account*</span></h3> | |
<p><span style="color:#ffffff;">Savings accounts with varying notice periods, paying interest annually</span></p> | |
</th> | |
<th> </th> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* | |
*/ | |
if (!function_exists('footer_get_latest_post')) { | |
function footer_get_latest_post() { | |
ob_start(); | |
$footerPost = ''; | |
$args = array('posts_per_page' => 1 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display courses using a shortcode | |
* @author Archie M | |
* | |
* | |
*/ | |
function short_courses_loop( $atts ) { | |
// Extract shortcode attributes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function new_excerpt_more($more) { | |
global $post; | |
$current_post_type = get_post_type(); | |
if($current_post_type == 'case_study'): | |
return '<a href="'. get_permalink($post->ID) . '"><i class="fa fa-arrow-circle-o-right"></i> Read the case study</a>'; | |
endif; | |
if($current_post_type == 'post'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function remove_item_from_menu() { | |
remove_menu_page( 'edit.php?post_type=elementor_library' ); // removes elementor addons , menu item added by plugins | |
remove_menu_page( 'edit-comments.php' ); // removes comment menu | |
remove_submenu_page('themes.php', 'theme-editor.php'); // remove submenu called theme edititor inside appearance | |
remove_submenu_page('themes.php', 'widgets.php'); // removes widgets submenu | |
} | |
add_action( 'admin_init', 'remove_item_from_menu' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* | |
* | |
*/ | |
function set_end_order_date ( $is_purchasable, $product ){ | |
// Set time zone | |
//$timezone = date_default_timezone_set('Europe/London'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add or try this in file masonryInitializer.js | |
* Source: https://github.com/desandro/imagesloaded/issues/303 | |
* | |
*/ | |
(function ($) { | |
"use strict"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hide specific prohects | |
* @author Archie M | |
* | |
*/ | |
function piglet_remove_posts_from_home_page( $query ) { | |
if( $query->is_main_query() && $query->is_home() ) { | |
$query->set( 'post__not_in', array( 1027335, 1027302, 1027259 ) ); |
NewerOlder