$args = array(
    'post_type' => 'product'
);function arrayMostCommon($content)
{
    $wordsArray = explode(' ', $content);
    $counted = array_count_values($wordsArray);
    arsort($counted);
    $resultArray = array();
    $iterator = 0;
    foreach ($counted as $key => $word) {
        $resultArray[] = $key;
        $iterator++;
        if ($iterator == 3) {
            break;
        }
    }
    return $resultArray;
}wp_set_post_tags(get_the_ID(), $tagsArray);      get_the_content(); с обрезанным текстом (примеров в интернете масса). Если же изображения не в самом начале то распарсить get_the_content(); и собрать в нужный формат отображения      $enabledLanguages = WPGlobus::Config()->enabled_languages;
$currentLanguage = WPGlobus::Config()->language;add_action('admin_head', 'acivate_update_price_event');
function acivate_update_price_event() {
	if (!wp_next_scheduled('daily_update_price_event')) {
		wp_schedule_event(time(), 'daily', 'daily_update_price_event');
	}
}
add_action('daily_update_price_event', 'update_price');
function update_price() {
	$args = array('post_type' => 'product');
	$loop = new WP_Query($args);
	while ($loop->have_posts()) {
		$loop->the_post(); 
		global $product;
		$productPrice = get_post_meta($product->id, '_price');
		$priceAdditives = mt_rand(100, 300);
		$finalPrice = $productPrice + $priceAdditives;
		update_post_meta($product->id, '_price', (float) $finalPrice);
	}
}function tinymce_update_rules($init)
{
    $init['extended_valid_elements'] = 'span[*],i[*]';
    $init['invalid_elements'] = 'br';
    return $init;
}
add_filter('tiny_mce_before_init', 'tinymce_update_rules');