prefix = get_xoops_prefix(); $xoops_db->tables = array('modules', 'newblocks', 'users'); $XPressME = new XPressME_Class(); require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; add_action('admin_menu', array(&$XPressME, 'add_option_page')); add_action('admin_head', array(&$XPressME, 'add_admin_head')); add_filter("upload_dir",array(&$XPressME, 'xpress_upload_filter'), 1); // Change wp-include/wp_upload_dir() if (!$XPressME->is_save_post_revision){ remove_action( 'pre_post_update', 'wp_save_post_revision' ); // Not Save Post Revision } add_action("comment_post", "block_cache_refresh"); add_action("edit_comment", "block_cache_refresh"); add_action("delete_comment","block_cache_refresh"); add_action("delete_post", "block_cache_refresh"); add_action("publish_post", "block_cache_refresh"); add_action("edit_post", "block_cache_refresh"); add_action("private_to_published", "block_cache_refresh"); add_action("wp_set_comment_status" , "block_cache_refresh"); add_action("the_content", "set_post_views_count"); //XOOPS notifiction require_once dirname( __FILE__ ).'/include/notify_functions.php' ; add_action("transition_post_status", "onaction_publish_post_notify" ,10 , 3); // add_action("edit_post", "onaction_edit_post_notify"); add_action("comment_post", "onaction_comment_notify"); // add_action("approve_comment" , "onaction_comment_apobe_notify"); add_action("wp_set_comment_status" , "onaction_comment_apobe_notify"); // user data sync user_sync_to_xoops($user_id) require_once dirname( __FILE__ ).'/include/user_sync_xoops.php' ; add_action('profile_update', 'user_sync_to_xoops'); add_action('user_register', 'user_sync_to_xoops'); //require_once('../include/custom_functions.php'); // SQL debug windows add_filter('query', array(&$XPressME, 'xpress_sql_debug')); add_action('admin_footer', array(&$XPressME, 'displayDebugLog')); add_action('get_footer', array(&$XPressME, 'displayDebugLog')); ?>