flarefox
Forum Replies Created
-
Forum: Requests and Feedback
In reply to: 429 problem in ChinaI have been puzzled by the same problem. Is it being checked and fixed? Thanks. Five months passed.
Forum: Hacks
In reply to: cron job does not work, why?This question has been solved. The reason is time zone.
wp_schedule_event(current_time(‘timestamp’), ‘debug60s’, ‘auto_update_sddl_event’);
After I changed it to be
wp_schedule_event(time(), ‘debug60s’, ‘auto_update_sddl_event’);It worked fine.
Forum: Hacks
In reply to: cron job does not work, why?Anyone can help? pls…
Forum: Hacks
In reply to: cron job does not work, why?The steps to run a cron job are:
1. use add_action to assign a function to a hook.
2. use wp_schedule_event to add the hook into cron list.
3. wait until the scheduled time has passed, then refresh wp site one times, the function will execute.Can you tell me whether these steps are correct? pls. Thanks!
Forum: Themes and Templates
In reply to: diffrent color for every widget’s title.widget_pages h2{
background-color:red;
}.widget_text h2{
background-color:green;
}Forum: Plugins
In reply to: diffrent color for every widget’s title.widget_pages h2{
background-color:red;
}.widget_text h2{
background-color:green;
}Forum: Plugins
In reply to: How to call function?In your codes use require_once to require a php file, then you can call all functions in the file directly.
Note: If the function belongs to a class definition, a object must be create to use the function. Maybe you can use a global object such as $post, $comment, $wpdb, etc.
I am a beginner. Hope it helps.
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Nothing being cachedI read some codes in wp-cache plugin when made a plugin recently. But reading codes is not a delighting work, I still donnot quite clear. So I only can give these advices as for your problem.
Have you modified wp-cache plugin before upgrade?
if not,
Did you install some new plugin after upgrade?
if not,
Try delete all files in wp-content/cache?
moreover, you probably have to delete *cache*.php in wp-contents folder.