How netx/netx-wordpress-plugin works
Project type and purpose
• This is a WordPress plugin (“netx-wordpress-plugin”) whose job is to integrate a WordPress site with the external NetX digital asset management system via its REST API.
• Key features:
• Server-side PHP code that hooks into WP (admin pages, media manager)
• A REST-client library (under includes/netx_rest)
• Proxy and custom endpoints to surface NetX assets in WP
• A small front-end (JS/CSS) to power the asset-picker UI
File structure
• Top-level plugin entry points:
• admin.php (admin UI bootstrap)
• netx-client.php / netx-media-manager.php / netx-media.php (main plugin hooks and media-manager integration)
• proxy.php (asset proxy to avoid CORS, cache control)
• endpoints/asset.php: an AJAX‐style endpoint used by the front end or WP Ajax to fetch assets
• includes/:
• netxRestWrapper.php / netxWordPressAssetLoader.php – high-level wrappers
• netx_rest/: a full REST client, factories, beans, caching proxy, connection, logging via PEAR::Log
• scripts/: client-side JavaScript (clientScript.js, script.js), CSS (style.css) for the asset-picker modal
README for additional insights
• Minimal readme: confirms “WordPress plugin for NetX.”