Skip to content

Instantly share code, notes, and snippets.

@stingray82
stingray82 / fluentboards-to-core-support-migration-template.php
Created October 25, 2026 17:21
Fluent Boards/Roadmap ---> Core Support Roadmaps
<?php
/**
* EXAMPLE MIGRATION: FluentBoards roadmaps to Core Support roadmaps.
*
* For FluentSnippets Functions snippets: paste the code BELOW the opening
* PHP tag (do not include <?php). Set "Where to Run" to "Admin Only".
*
* IMPORTANT
* - Back up the database and test on staging before running in production.
* - This is a template, NOT a general-purpose automatic migration.
@stingray82
stingray82 / IMPLEMENTATION_NOTES.md
Last active October 23, 2026 18:48
Static Cart Codex Demo

Implementation notes

Delivered

  • dist/ contains FTP-ready static HTML, CSS, a small plan switch and price-state script, and locally hosted artwork. staticcart-static.zip contains those web files at the archive root. Pages: sales, checkout, payment return, and one account page containing sign in, recovery, orders, subscriptions, licences and downloads.
  • storefront-import.json is one complete Static Cart format-version-2 new-storefront package with six plan placeholders and all page mappings. It has no secret or price.
  • Primary/dark SVG logo, favicon, three plan icons, connection illustration, social image, plus PNG logo/favicon/social exports are in dist/assets/.

Verified contract and decisions

@stingray82
stingray82 / Snippet.php
Created September 24, 2026 19:23
SureCart - React Product ID Table
<?php
/**
* Plugin Name: SureCart – Product ID Column
* Description: Adds a "Product ID" column to the SureCart products list, parsed from the product Edit URL.
*/
add_action('admin_enqueue_scripts', function ($hook) {
// Only run on the SureCart Products list page.
if (
@stingray82
stingray82 / Snippet.php
Last active September 20, 2026 15:24
Cube Invoice + GT Extentions for FluentCart flow?
<?php
/**
* CartCubes Invoices 1.0.1+ + GT Extensions Multi-Currency (V1.0.1)
*
* SINGLE INTEGRATION SNIPPET
*
* Requires the following CartCubes 1.0.1+ filters:
*
* - cartcubes_fc_invoices_pay_url_args
* - cartcubes_fc_invoices_email_tokens
@stingray82
stingray82 / request.md
Created August 25, 2026 20:45
WPSMARTPAY Feature Requrest

l’m integrating a third-party licence-management plugin with the new WPSmartPay customer dashboard.

The current dashboard implementation in app/Helpers/dashboard.php hard-codes the allowed sp_view values via smartpay_dashboard_views(), while resources/views/shortcodes/partials/sidebar.php builds $sp_nav_items without a filter. dashboard.php also resolves dashboard partials directly from SMARTPAY_DIR, which prevents extensions from supplying their own dashboard view.

Could you add extensibility hooks for third-party dashboard sections?

Ideally:

function smartpay_dashboard_views(): array {
@stingray82
stingray82 / Snippet.php
Created August 3, 2026 16:58
Remove Flowmattic Tables from Flowmattic
/**
* Remove FlowMattic Tables from:
* 1. The standard WordPress admin menu
* 2. FlowMattic's custom sidebar
*/
/**
* Remove from WordPress admin menu.
*/
add_action( 'admin_menu', function () {
@stingray82
stingray82 / pattern.php
Created August 2, 2026 14:04
Example Ebook Pattern
<?php
/**
* The Impossible Pantry
* Complete Gutenberg eBook landing-page pattern with scoped CSS.
*
* Add to:
* - A child theme's functions.php
* - A custom functionality plugin
* - A PHP snippets plugin
*
@stingray82
stingray82 / Snippet.php
Created August 2, 2026 14:03
Flowmattic Echo chamber pass variables and get them straight back and useable in the flow
<?php
function flowmattic_dynamic_return(...$inputs) {
// Combine the inputs into an associative array and return it
$output = [];
foreach ($inputs as $key => $value) {
$output[$key] = $value;
}
return $output;
}
@stingray82
stingray82 / snippet.php
Created August 2, 2026 14:03
Make the Key field in craftforms click to copy
<?php
/**
* Make CraftForms embed keys click-to-copy.
*
* Only runs on:
* /wp-admin/admin.php?page=craftforms_settings
*/
add_action( 'admin_footer', function () {
@stingray82
stingray82 / Snippet.php
Created August 2, 2026 14:02
SimplyStatic - Ignore Response Bridge and CraftForms assets
<?php
add_filter( 'simply_static_content_before_save', function ( $content ) {
if ( ! is_string( $content ) ) {
return $content;
}
$backend = 'https://craftforms-example.wpta.uk';
$replacements = [