is_registered( self::BLOCK_NAME ) ) { return; } register_block_type( TDVB_DIR_PATH . 'build' ); // Translations shipped in the plugin (Freemius builds); wordpress.org installs are covered by WP itself. load_plugin_textdomain( '3d-viewer-block', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); wp_set_script_translations( 'tdvb-td-viewer-editor-script', '3d-viewer-block', TDVB_DIR_PATH . 'languages' ); } function enqueueBlockAssets() { $src = TDVB_DIR_URL . 'public/js/model-viewer.min.js'; $ver = TDVB_VERSION; // A host plugin (3D Viewer / 3D Viewer Premium) also prints the library through a classic //