$value ) { add_meta_box( 'ataswp_auto_post_metabox', __( 'ATAS - Auto Post', 'ataswp_lang' ), array( $this, 'render_auto_post_metabox' ), $value, // post type 'side', 'high' ); } } } } /** * Render Metaboxes. * * @since 1.0.0 * @param object $post * @return void */ public function render_auto_post_metabox( $post ) { // Add nonce for security and authentication. wp_nonce_field( 'ataswp_auto_post_metabox_nonce_action', 'ataswp_auto_post_metabox_nonce' ); // Get the meta for all keys for the current post $meta = get_post_meta( $post->ID ); $post_id = $post->ID; ?>
">
$post_id, 'auto_post' => $auto_post // 1 or empty ); $twitter_data = json_encode($twitter_data); // json encode before send // do avtion, process to post do_action( 'ataswp_process_twitter_auto_post', $twitter_data ); // <- extensible } } } ?>