Skip to content

Instantly share code, notes, and snippets.

View jack-arturo's full-sized avatar
🤓

Jack Arturo jack-arturo

🤓
View GitHub Profile
@jack-arturo
jack-arturo / TRANSLATION-SETUP.md
Created August 22, 2025 18:29
WP Fusion Translation Setup with Potomatic

WP Fusion Translation Setup with Potomatic

This document explains how to use the automated translation system powered by Potomatic for WP Fusion.

Quick Start

  1. Install dependencies:
    npm install
@jack-arturo
jack-arturo / claude-automation-cron-setup.md
Created August 22, 2025 04:23
Complete macOS Setup Guide for Claude Automation Hub

Complete macOS Setup Guide for Claude Automation Hub

Step 1: Install Claude Desktop & Claude Code

# Install Claude Desktop (if not already installed)
# Download from: https://claude.ai/download

# Install Claude Code via Homebrew (when available)
# Note: As of now, check if Claude Code is released

Daily Development Summary Generator

<command name="daily-summary">
<description>
Generate a comprehensive daily development summary across EchoDash repositories, optimized for team sharing in Slack.
Input: $ARGUMENTS (optional: date in YYYY-MM-DD format, defaults to today)
</description>

<workflow>
@jack-arturo
jack-arturo / update-docs.md
Last active July 21, 2025 05:38
update-docs.md
allowed-tools Bash(git branch:*), Bash(git log:*), Bash(git status:*), Bash(curl:*), Bash(jq:*), Bash(echo:*), Bash(base64:*)
auto-approve true
description Update wpfusion.com documentation after implementing a feature using WordPress REST API

Update WP Fusion Documentation

Context

@jack-arturo
jack-arturo / edd-hide-discount-code.php
Created March 27, 2025 05:41
Hide the discount code on the Easy Digital Downloads checkout and show the discount name instead
<?php
/**
* Show EDD discount name instead of code in checkout summary.
*/
function my_custom_edd_discount_display( $discount_html, $discount ) {
$discount = edd_get_discount_by_code( $discount );
if ( ! $discount ) {
return $discount_html;
@jack-arturo
jack-arturo / wpf-dont-apply-tags-subscription-renewal.php
Created March 12, 2025 03:18
Don't apply "active" tags during a WooCommerce subscriptions renewal
<?php
/**
* Don't apply tags on renewal
*
* @param array $apply_tags The tags to apply.
* @param string $status The status of the subscription.
* @return array The tags to apply.
*/
function dont_apply_tags_on_renewal( $apply_tags, $status ) {
@jack-arturo
jack-arturo / wpf-redirect-to-previous-lesson.php
Last active February 11, 2025 20:38
Redirects users back to the previous page when accessing a restricted LearnDash lesson
<?php
/**
* Redirects users back to the previous page when accessing a restricted LearnDash lesson
*
* @param string $redirect_url The redirect URL
* @param int $post_id The post ID
* @return string The modified redirect URL
*/
function my_learndash_redirect( $redirect_url, $post_id ) {
@jack-arturo
jack-arturo / edd-account-tweaks.php
Last active February 11, 2025 04:43
EDD Account Customization Shortcodes
<?php
// Excuse the mess :D
// we also make use of the [purchase_history] and [edd_subscriptions] shortcodes
function edd_account_content_hook_licenses( $output ) {
ob_start();
?>
@jack-arturo
jack-arturo / wpf-apply-tags-after-x-pageviews.php
Created December 10, 2024 15:43
Applies a tag after any 5 pages on the site are viewed
<?php
/**
* Track total page views across the site and apply a tag with WP Fusion if the view count exceeds 5.
*/
function wpf_track_total_page_views() {
// Replace with the WP Fusion tag name you want to apply
$wp_fusion_tag = 'Example Tag Name';
@jack-arturo
jack-arturo / wpf-apply-tags-based-on-visit.php
Last active December 9, 2024 22:09
Applies a tag after a user has visited a post or page more than X times
<?php
/**
* Track visits to a specific post or page and apply a tag with WP Fusion if the visit count exceeds 5.
*/
function wpf_track_post_visits() {
// Replace with the IDs of the posts or pages you want to track
$target_post_ids = array( 123, 456 );