Quantcast
Channel: Topic Tag: job | WordPress.org
Viewing all articles
Browse latest Browse all 386

Zail on "[Plugin: WP Job Manager] need to know action for submit post"

$
0
0

Hello support team :)

I'm really new in wordpress and my employer need to use wp-job-manager with other plugin for allow to user to submit jobs.
The problem is : we have a multi-site and we need to allow to user to post on one site and in another site get the new post automatically .
For this i thought add an action in functions.php but i didn't find the action name for submit job... I find save_post but it doesn't work.

If you want, this is my script in add_action :

add_action("save_post", "publish_on_main_blog",1,1);
function publish_on_main_blog( $post_id ){
$post = get_post($post_id);
switch_to_blog(3);
$newpostid = wp_insert_post($post);
restore_current_blog();
}

https://wordpress.org/plugins/wp-job-manager/


Viewing all articles
Browse latest Browse all 386

Trending Articles