| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/ifwar.ru/www/wp-content/plugins/clever-fox/inc/fiona-blog/default-widgets/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
$cleverfox_MediaId = get_option('fiona_blog_media_id');
$cleverfox_title = __('Spending a day in Paris, The best place to go','clever-fox');
$cleverfox_content=__('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever.','clever-fox');
$cleverfox_title2 = __('A New Age For Trade & Supply Chain Finance','clever-fox');
$cleverfox_title3 = __('Ranking for keywords around the products','clever-fox');
$cleverfox_postData = array(
array(
'post_title' => $cleverfox_title,
'post_status' => 'publish',
'post_content' => '<p>'.$cleverfox_content.'</p>',
'post_author' => 1,
'post_type' => 'post',
'post_category' => array(),
'tax_input' => array(
'post_tag' => array('Tech','News')
),
),
array(
'post_title' => $cleverfox_title2,
'post_status' => 'publish',
'post_content' => '<p>'.$cleverfox_content.'</p>',
'post_author' => 1,
'post_type' => 'post',
'post_category' => array(),
'tax_input' => array(
'post_tag' => array('Trending', 'Latest')
),
),
array(
'post_title' => $cleverfox_title3,
'post_status' => 'publish',
'post_content' => '<p>'.$cleverfox_content.'</p>',
'post_author' => 1,
'post_type' => 'post',
'post_category' => array(),
'tax_input' => array(
'post_tag' => array('News','Trending')
),
),
);
kses_remove_filters();
//foreach ( $cleverfox_MediaId as $cleverfox_media) :
foreach ( $cleverfox_postData as $cleverfox_i => $cleverfox_postData1) :
$cleverfox_id = wp_insert_post($cleverfox_postData1);
set_post_thumbnail( $cleverfox_id, $cleverfox_MediaId[$cleverfox_i + 1] );
endforeach;
//endforeach;
kses_init_filters();