Need help in the process of creating your own WordPress theme?
The core of Extensions.
get($extension_name)
- get instance of an existing active extension.
echo fw()->extensions->get('extension_name')->get_name();Also it can be used to check if an extension exists (is active).
if (fw()->extensions->get('extension_name')) { fw()->extensions->get('extension_name')->some_method(); } // or there is shorter alias for this method if (fw_ext('extension_name')) { fw_ext('extension_name')->some_method(); }