HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/crowdandsafety/wordpress-backups/x/framework/functions/plugins/acf-pro.php
<?php

// =============================================================================
// FUNCTIONS/PLUGINS/ACF-PRO.PHP
// -----------------------------------------------------------------------------
// Plugin setup for theme compatibility.
// =============================================================================

// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
//   01. Remove License Functionality
// =============================================================================

// Remove License Functionality
// =============================================================================


function x_acf_pro_remove_license_functionality() {

  if ( function_exists( 'acf_updates' ) ) {
    $update_class = acf_updates();
    // Note to reviewer: This remove_filter call disabled ACF Pro automatic updates because we provide those
    // updates directly so the buyer doesn't need to purchase the plugin to get automatic updates.
    remove_filter( 'pre_set_site_transient_update_plugins', array( $update_class, 'modify_plugins_transient' ), 10, 1 );
  }

  add_filter( 'acf/settings/show_updates', '__return_false' );

}

add_action( 'init', 'x_acf_pro_remove_license_functionality', 0 );