HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/plugins/shortcodes-ultimate/includes/upgrade/5.6.0.php
<?php

/**
 * 1. Replace `category_description` with `term_description`
 *    in the `su_option_enable_shortcodes_in` option
 */

$old_value = get_option( 'su_option_enable_shortcodes_in' );
$new_value = array();

if ( is_array( $old_value ) ) {

	foreach ( $old_value as $item ) {

		if ( 'category_description' === $item ) {
			$item = 'term_description';
		}

		$new_value[] = $item;

	}

}

update_option( 'su_option_enable_shortcodes_in', $new_value );