'sync',
'title' => __( 'Synchronization', 'polylang' ),
'description' => __( 'The synchronization options allow to maintain exact same values (or translations in the case of taxonomies and page parent) of meta content between the translations of a post or page.', 'polylang' ),
) );
}
/**
* deactivates the module
*
* @since 1.8
*/
public function deactivate() {
$this->options['sync'] = array();
update_option( 'polylang', $this->options );
}
/**
* displays the settings form
*
* @since 1.8
*/
protected function form() {?>
options['sync'] ) ? array( 'configure' ) : array( 'configure', 'deactivate' );
}
/**
* list the post metas to synchronize
*
* @since 1.0
*
* @return array
*/
static public function list_metas_to_sync() {
return array(
'taxonomies' => __( 'Taxonomies', 'polylang' ),
'post_meta' => __( 'Custom fields', 'polylang' ),
'comment_status' => __( 'Comment status', 'polylang' ),
'ping_status' => __( 'Ping status', 'polylang' ),
'sticky_posts' => __( 'Sticky posts', 'polylang' ),
'post_date' => __( 'Published date', 'polylang' ),
'post_format' => __( 'Post format', 'polylang' ),
'post_parent' => __( 'Page parent', 'polylang' ),
'_wp_page_template' => __( 'Page template', 'polylang' ),
'menu_order' => __( 'Page order', 'polylang' ),
'_thumbnail_id' => __( 'Featured image', 'polylang' ),
);
}
}