FoxeLabs Documentation
website·Indexed 31 days ago
https://docs.foxelabs.comTechnical documentation for FoxeLabs software and libraries, including WordPress plugins such as Better Disqus Comments, Loggedin, Convocept, and Lazy Load for Comments, as well as the Gold Scalpel trading tool and various WordPress PHP libraries like wp-queue-process and wp-freemius-client.
What's inside FoxeLabs
- Foxe Labs develops algorithmic trading systems and custom Expert Advisors (EAs) specifically for MetaTrader 5. Their tools prioritize risk management with built-in guardrails and sensible defaults to maintain small, consistent losses.
Introduction to Gold Scalpel for MetaTrader 5
Gold Scalpel is a precision breakout scalper pre-tuned for XAUUSD (Gold) on MetaTrader 5. Key features include:
- Entry on confirmed breakouts.
- Early move to breakeven for trade protection.
- Trailing stops to lock in gains.
- Percentage-based risk sizing.
- Optional losing-streak cooldown.
- Automatic weekend pause.
Overview of WP Queue Process for WordPress
WP Queue Process is a WordPress library used to fire non-blocking asynchronous requests and run long-running jobs as a background queue. It processes items in batches to avoid exhausting server time or memory limits. The system is self-healing, using a cron job to restart stalled queues, and includes a server-load guard to prevent resource exhaustion.Overview of Loggedin session management
Loggedin is a WordPress session manager that controls the number of simultaneous login sessions a single user account can hold. It is primarily used to prevent account sharing or to ensure compliance by limiting users to a specific number of devices. Key capabilities include capping concurrent sessions, force-logging out users from the admin panel, and managing sessions via WP-CLI.Overview of WP Freemius Client SDK
The WP Freemius Client is a lightweight, UI-free SDK designed for Foxe Labs WordPress plugins. It provides the underlying logic for license activation, deactivation, update delivery, and addon listings by communicating directly with the Freemius API using signed requests (FS/FSP header-signing scheme).
Crucially, the library contains no admin screens, notices, or opt-in flows; host plugins are responsible for building their own UI and implementing nonce/capability checks before calling the SDK's methods.
Overview of Foxe Labs WordPress plugins and libraries
Foxe Labs provides a suite of lean, focused open-source tools for WordPress:
- Convocept: A native WordPress comment system featuring threaded replies, upvotes, and email subscriptions with zero JavaScript on page load. Supports Disqus imports.
- Loggedin: Manages concurrent user sessions by limiting the number of active sessions and forcing logouts when limits are exceeded.
- Lazy Load for Comments: Improves page speed by loading comments only on scroll or on click.
- Better Disqus Comments: Optimizes Disqus integration by loading comments on scroll or click and syncing comments into the WordPress database for SEO indexing.
- WordPress Libraries: A collection of PHP libraries (requiring PHP 7.4+) distributed via Composer, covering licensing, caching, background queues, and review notices.
Overview of the Active Sessions add-on
The Active Sessions add-on adds a Sessions tab to Users → Loggedin (located between Settings and Addons). It provides a searchable and sortable list of all users with at least one live WordPress session. Admins can view detailed session data (IP address, device, login time) and perform targeted sign-outs of individual sessions or all sessions for a user.
Constraint: This add-on relies on the default WordPress
WP_User_Meta_Session_Tokensstorage backend. Sites using a custom session manager via thesession_token_managerfilter (e.g., Redis) may see an empty or partial list and a warning notice.Overview of Loggedin WP-CLI commands
Loggedin provides a set of WP-CLI commands to inspect and clear user sessions and manage plugin settings without using the WordPress admin dashboard. These commands are available since version 3.1.0 and require no additional installation beyond activating the plugin.wp loggedin sessions list <user> # Active sessions for a user wp loggedin sessions count <user> # Number of active sessions wp loggedin sessions destroy <user> # Sign a user out wp loggedin sessions destroy-all # Sign out every user on the site wp loggedin settings list # Every setting and its value wp loggedin settings get <key> # Read one setting wp loggedin settings set <key> <value># Write one settingOverview of WP Cache Helper features
WP Cache Helper is a small WordPress library designed to wrap the object cache and transient APIs. It provides three primary capabilities:
- Callback-style caching: The
remember()helper ensures that the provided callback only executes on a true cache miss, correctly distinguishing between cached falsy values (like0,'',[], orfalse) and a missing entry. - Group flush support: It allows flushing specific cache groups. On WordPress 6.1+ backends that support it, it delegates to
wp_cache_flush_group(). For backends without native support, it uses a version-sentinel fallback to make old entries unreadable. - Per-prefix scoping: All keys, groups, and the
{prefix}_can_cachefilter are namespaced using a supplied prefix to prevent collisions between different consumers on the same site.
- Callback-style caching: The
Overview of the Better Disqus Comments Premium Bundle
The Premium Bundle provides a single license key that covers all current and future Better Disqus Comments addons. Included addons are:
- Advanced Buttons
- Scroll Load
- Comments for WooCommerce
- Comments for EDD
- Comments Widget
- Latest Comments Widget
Future addons are included at no extra cost for the duration of the license validity. The license is counted by the number of sites it is activated on, regardless of how many addons are installed on that site.
Overview of WP Review Notice library
WP Review Notice is an opinionated WordPress library designed to prompt users for a wp.org plugin review after a configurable number of days of usage. It features a dismissible admin notice with 'Review', 'Later', and 'Dismiss' actions. Key functionality includes:
- Configurable delay after activation before the notice appears.
- Visibility restrictions based on specific admin screens and user capability levels.
- Per-user dismissal persistence to ensure that one admin's dismissal does not affect others.
Overview of Gold Scalpel EA
Gold Scalpel is a fully automated Expert Advisor (EA) for MetaTrader 5 specifically tuned for XAUUSD (Gold). It is a precision breakout scalper that identifies support and resistance levels, enters on breakouts, and protects trades using early breakeven and trailing stops. The strategy prioritizes capital preservation, aiming for small frequent trades and keeping losses minimal.