2014-03-10, 06:18:21
(2014-03-08, 06:08:35)sbatko Wrote: I wrote a plugin that allows indexing / search posts by I18N Search plugin.
http://get-simple.info/extend/plugin/i18...posts/776/
Now the question is: how to call a re-index after adding, deleting or editing a post? I18N Search uses changedata-save and page-delete.
There is a chance that the News Manager also generate these events?
Plugin itself is not able to do this
You could do the following either directly in the plugin or better in the hook admin-pre-header:
Code:
if (basename($_SERVER['PHP_SELF']) == 'load.php' && @$_GET['id'] == 'nm_admin' && /* additional conditions to check for save or delete parameters */) {
delete_i18n_search_index();
}