get_class_name()
get_class_name() : string
Get Class Name
Returns
string —CLASS
Class MainWP_Post_Page_Handler
new_post(array $post_data = array(), boolean $replaceadvImg = false, mixed $website = false) : array
Method new_post()
Create new post.
array | $post_data | Array of post data. |
boolean | $replaceadvImg | replace advanced images of post or not. |
mixed | $website | The website object. |
result
create_post(mixed $new_post, mixed $post_custom, mixed $post_category, mixed $post_featured_image, mixed $upload_dir, mixed $post_tags, mixed $post_gallery_images, boolean $replaceadvImg = false, mixed $website = false) : array
Method create_post()
Create post.
mixed | $new_post | Post type. |
mixed | $post_custom | Custom Post. |
mixed | $post_category | Post Category. |
mixed | $post_featured_image | Post Featured Image. |
mixed | $upload_dir | Child Site upload directory. |
mixed | $post_tags | Post tags. |
mixed | $post_gallery_images | Post Gallery Images. |
boolean | $replaceadvImg | replace advanced images of post or not. |
mixed | $website | The website object. |
result
replace_advanced_image(array $content, array $upload_dir, mixed $website, boolean $withslashes = false) : mixed
Method replace_advanced_image()
Handle upload advanced image.
array | $content | post content data. |
array | $upload_dir | upload directory info. |
mixed | $website | The website. |
boolean | $withslashes | to use preg pattern with slashes. |
array of result.