updater.php 441 B

1234567891011121314151617
  1. <?php
  2. /* Only run if not already setup and not using a repo version. */
  3. if ( ! class_exists( 'FLUpdater' ) && FL_BUILDER_LITE !== true ) {
  4. /* Defines */
  5. define( 'FL_UPDATER_DIR', trailingslashit( dirname( __FILE__ ) ) );
  6. /* Classes */
  7. require_once FL_UPDATER_DIR . 'classes/class-fl-updater.php';
  8. /* Actions */
  9. add_action( 'fl_themes_license_form', 'FLUpdater::render_form' );
  10. /* Initialize the updater. */
  11. FLUpdater::init();
  12. }