dist/contains FTP-ready static HTML, CSS, a small plan switch and price-state script, and locally hosted artwork.staticcart-static.zipcontains 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.jsonis 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/.
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 | |
| /** | |
| * 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. |
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 | |
| /** | |
| * 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 ( |
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 | |
| /** | |
| * 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 |
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 {
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
| /** | |
| * 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 () { |
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 | |
| /** | |
| * 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 | |
| * |
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 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; | |
| } |
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 | |
| /** | |
| * Make CraftForms embed keys click-to-copy. | |
| * | |
| * Only runs on: | |
| * /wp-admin/admin.php?page=craftforms_settings | |
| */ | |
| add_action( 'admin_footer', function () { |
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 | |
| add_filter( 'simply_static_content_before_save', function ( $content ) { | |
| if ( ! is_string( $content ) ) { | |
| return $content; | |
| } | |
| $backend = 'https://craftforms-example.wpta.uk'; | |
| $replacements = [ |
NewerOlder