prefix = get_xoops_prefix(); $xoops_db->tables = array('modules', 'newblocks', 'users'); add_action('admin_menu', array(&$xpessme, 'add_option_page')); add_action('admin_head', array(&$xpessme, 'add_admin_head')); add_filter("upload_dir",array(&$xpessme, '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("private_to_published", "onaction_publish_post_notify"); // 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"); //require_once('../include/custom_functions.php'); ?>