wordpress/wp-content/plugins/cms-tree-page-view/functions.php
/**
 * Save settings, called when saving settings in general > cms tree page view
 */
Save settings, called when saving settings in general > cms tree page view
Save settings called when saving settings in general > cms tree page view
function cms_tpv_save_settings() {
	if (isset($_POST["cms_tpv_action"]) && $_POST["cms_tpv_action"] == "save_settings" && check_admin_referer('update-options')) {
		$options = array();
		$options["dashboard"] = isset( $_POST["post-type-dashboard"] ) ? (array) $_POST["post-type-dashboard"] : array();
		$options["menu"] = isset( $_POST["post-type-menu"] ) ? (array) $_POST["post-type-menu"] : array();
		$options["postsoverview"] = isset( $_POST["post-type-postsoverview"] ) ? (array) $_POST["post-type-postsoverview"] : array();
		update_option('cms_tpv_options', $options);
	}
}
function cms_tpv_save_settings ( ) { if ( isset ( $ _POST [ " cms_tpv_action " ] ) && $ _POST [ " cms_tpv_action " ] == " save_settings " && check_admin_referer ( 'update-options' ) ) { $ options = array ( ) ; $ options [ " dashboard " ] = isset ( $ _POST [ " post-type-dashboard " ] ) ? ( array ) $ _POST [ " post-type-dashboard " ] : array ( ) ; $ options [ " menu " ] = isset ( $ _POST [ " post-type-menu " ] ) ? ( array ) $ _POST [ " post-type-menu " ] : array ( ) ; $ options [ " postsoverview " ] = isset ( $ _POST [ " post-type-postsoverview " ] ) ? ( array ) $ _POST [ " post-type-postsoverview " ] : array ( ) ; update_option ( 'cms_tpv_options' , $ options ) ; } }
Save settings, called when saving settings in general > cms tree page view
Save settings called when saving settings in general > cms tree page view