query( $handle, 'registered' ); if ( ! $script || ! in_array( 'wp-i18n', (array) $script->deps, true ) ) { return false; } // Translations come from translate.wordpress.org (wp-content/languages/plugins). return wp_set_script_translations( $handle, 'stacklar-forms' ); } } if ( ! function_exists( 'stacklar_boot_services' ) ) { function stacklar_boot_services() { $cpt = new Stacklar_CPT(); $blocks = new Stacklar_Blocks(); $plugin = new Stacklar_Plugin( $cpt, $blocks ); $plugin->init(); if ( is_admin() && class_exists( 'Stacklar_Duplicate', false ) ) { $duplicate = new Stacklar_Duplicate(); $duplicate->init(); } } } if ( ! function_exists( 'stacklar_boot_runtime' ) ) { function stacklar_boot_runtime() { static $booted = false; if ( $booted ) { return; } $booted = true; add_action( 'plugins_loaded', 'stacklar_boot_services' ); } }