public/wordpress/wp-content/plugins/wp-courseware/includes/controllers/units.php
/**
	 * Update Taxonomy Permalinks.
	 *
	 * @since 4.4.0
	 *
	 * @param array $settings The settings array.
	 */
Update Taxonomy Permalinks.

@param array $settings The settings array.
Update Taxonomy Permalinks . @param array $settings The settings array .
public function update_post_type_taxonomy_permalinks( $post_data ) {
		$permalinks = (array) get_option( 'wpcw_permalinks', array() );
		$category_base = isset( $post_data['unit_category_base'] ) ? $post_data['unit_category_base'] : _x( 'unit-category', 'slug', 'wp-unitware' );
		$tag_base      = isset( $post_data['unit_tag_base'] ) ? $post_data['unit_tag_base'] : _x( 'unit-tag', 'slug', 'wp-courseware' );
		$permalinks['unit_category_base'] = wpcw_sanitize_permalink( wp_unslash( $category_base ) );
		$permalinks['unit_tag_base']      = wpcw_sanitize_permalink( wp_unslash( $tag_base ) );
		update_option( 'wpcw_permalinks', $permalinks );
		wpcw_enable_flush_rewrite_rules_flag();
		$this->flush_post_type_rewrite_rules();
	}
public function update_post_type_taxonomy_permalinks ( $ post_data ) { $ permalinks = ( array ) get_option ( 'wpcw_permalinks' , array ( ) ) ; $ category_base = isset ( $ post_data [ 'unit_category_base' ] ) ? $ post_data [ 'unit_category_base' ] : _x ( 'unit-category' , 'slug' , 'wp-unitware' ) ; $ tag_base = isset ( $ post_data [ 'unit_tag_base' ] ) ? $ post_data [ 'unit_tag_base' ] : _x ( 'unit-tag' , 'slug' , 'wp-courseware' ) ; $ permalinks [ 'unit_category_base' ] = wpcw_sanitize_permalink ( wp_unslash ( $ category_base ) ) ; $ permalinks [ 'unit_tag_base' ] = wpcw_sanitize_permalink ( wp_unslash ( $ tag_base ) ) ; update_option ( 'wpcw_permalinks' , $ permalinks ) ; wpcw_enable_flush_rewrite_rules_flag ( ) ; $ this -> flush_post_type_rewrite_rules ( ) ; }
Update Taxonomy Permalinks.
Update Taxonomy Permalinks .
// Update Option // Flush Rewrite Rules Flag. // Flush Rewrite Rules.