returns true/false; call not earlier than 'init' action with the priority of 1
$module_active = jet_engine()->modules->is_module_active( 'data-stores' );returns instance of \Jet_Engine\Modules\Data_Stores\Stores\Factory\
returns true/false; call not earlier than 'init' action with the priority of 1
$module_active = jet_engine()->modules->is_module_active( 'data-stores' );returns instance of \Jet_Engine\Modules\Data_Stores\Stores\Factory\
| <style> | |
| :is(.star-field, .jet-form-builder__fields-group:has(.star-field-check)) { | |
| display: flex !important; | |
| flex-direction: row !important; | |
| } | |
| :is(.star-field, .jet-form-builder__fields-group:has(.star-field-check)) > .radio-wrap { | |
| display: inline-block !important; | |
| } |
| <?php | |
| //get_content_types() should be called on init with priority 12 or higher, or at any action later than init (there are no registered CCTs before that action) | |
| $result = array(); | |
| $content_type = \Jet_Engine\Modules\Custom_Content_Types\Module::instance()->manager->get_content_types( 'content_type_slug' ); | |
| if ( ! $content_type) { | |
| return $result; | |
| } | |
| //$args is an array of arguments | |
| //like |
| <?php | |
| add_filter( 'jet-engine/relations/raw-relations', function( $relations ) { | |
| $relations[999] = array( | |
| 'name' => 'User to post', | |
| 'parent_rel' => null, | |
| 'type' => 'many_to_many', | |
| 'is_legacy' => false, | |
| 'id' => 999, | |
| <?php | |
| /** | |
| * JetEngine CCT-related API functions to use in theme or plugin | |
| * | |
| * Theme usage - include get_theme_file_path( 'jet-engine-cct-api.php' ); | |
| * Plugin usage - include PLUGIN_PATH . 'path-to-file-inside-plugin/jet-engine-cct-api.php'; | |
| */ | |
| /** |