'tools', 'title' => __( 'Tools', 'polylang' ), 'description' => __( 'Decide whether to remove all data when deleting Polylang.', 'polylang' ), ) ); } /** * Displays the settings form * * @since 1.8 */ protected function form() { printf( '', checked( empty( $this->options['uninstall'] ), false, false ), esc_html__( 'Remove all Polylang data upon using the "Delete" action in the "Plugins" admin page.', 'polylang' ) ); } /** * Sanitizes the settings before saving * * @since 1.8 * * @param array $options */ protected function update( $options ) { $newoptions['uninstall'] = isset( $options['uninstall'] ) ? 1 : 0; return $newoptions; // Take care to return only validated options } }