juliosene
Forum Replies Created
-
I had to create a new hook to enable my plugin. I hacked admin.php (\wp-content\plugins\w3-total-cache\inc\functions) and have added a “w3tc_after_save_options”. However, when I save configuration using “General Settings” page, It is not working. It appears that this page saves a new configuration after the admin.php finishing save process.
(new) admin.php:
(...) /** * Update CloudFront CNAMEs */ if ($update_cf_cnames) { $error = null; $w3_plugin_cdn->update_cnames($error); } /** * Rebuild master.php config file * */ // w3tc_azure_memcached(); do_action('w3tc_after_save_options',$new_config); return true; } /** * Uploads minify files to CDN * * @return void */ (...)
Thanks Nigro,
Your link are very helpful, however, I need to execute my function after W3TC save the configuration on “master.php” file.
I tried ‘w3tc_saved_options’ action, but isn’t working. W3TC is saving the “master.php” after this action (overwriting my modified file).
Update: I have already build a PHP script to make all changes that I need at “master.php” file. Now, I need to run it every time that W3TC saves a new configuration.
Forum: Plugins
In reply to: [WP-Instaroll] Instagram API issueHi,
I’m using WordPress 4.0. Instaroll isn’t showing posts list anymore (/wp-admin/admin.php?page=wpinstaroll_menu_photo_selection).
Forum: Plugins
In reply to: [WP Simple Galleries] Gallery duplicated at the end of sigle post page.I’m using Titan theme: https://themes.themegoods.com/titan_wp/?page_id=79
When I add a wp simple gallery, the gallery was showed at post and after the copyright text (at footer).
Forum: Plugins
In reply to: [WP-PostRatings] Vote system – problems with the_ratings() functionThanks for your support!
I verified and the problem was in my code. I was passing an array as ID. Now is working and I’m almost there with my vote system.Forum: Plugins
In reply to: [Post Ratings] Order posts by scoreI have the same issue. I tried the solution described on FAQ, however it created many problems with my template architecture and worked partially.
Can I use some rating parameter in $args array for query_posts function?
Forum: Plugins
In reply to: [Post Ratings] W3 Total Cache and Post RatingsI’m using w3tc and everything in ok, however I’m using memcached (and i tested it with APC too). I had some problems with Varnish, but I solved it with a different Varnish configuration.