Akismet plugin is deleting spam despite preferences

I would generally not recommend modifying files for Plugins that you do not control. Better would be to write your own site/custom Plugin, to control this hook: add_action(‘akismet_scheduled_delete’, ‘akismet_delete_old’); First, to stop the deletion altogether, simply call: remove_action(‘akismet_scheduled_delete’, ‘akismet_delete_old’); Then, you can set up a cron job (or similar), to fire the akismet_delete_old() function on … Read more

How to delete terms on plugin deactivate?

I recommend not deleting the terms at the point of deactivation. Instead why don’t you delete the terms at the point of uninstallation? You can use the uninstall hook: http://codex.wordpress.org/Function_Reference/register_uninstall_hook Or bypass that. The plugin should create a file named ‘uninstall.php’ in the base plugin folder. This file will be called, if it exists, during … Read more

Get uploaded image url

wp_upload_dir() is perfect. It is the only place where you can expect write permissions. Store the attachment ID, not a path. Then you get the image with: wp_get_attachment_url( $attach_id ) Sometimes a user may have deleted the image per media library. To avoid problems with missing files check the return value from wp_get_attachment_url() first. Excerpt … Read more

How would one split content of a post into pages?

You don’t need a plugin for that, it is built-in. Just insert <!–nextpage–> where you need the break, and a properly coded theme will create pagination links. To create page links in a theme use wp_link_pages() Screen shot back-end: Screen shot front-end: