After installing JetPack, can I delete the WordPress stats plugin?
Yes, you can safely deactivate the old wordpress.com stats Plugin. Once you verify that your historical data have been retained, you can safely delete the Plugin.
Yes, you can safely deactivate the old wordpress.com stats Plugin. Once you verify that your historical data have been retained, you can safely delete the Plugin.
Where are you calling wp_applugin_options_process()? If you call it, and $_POST[“excludeid”] isn’t set, then you’re effectively calling: update_option(“wp_applugin_excludeids”, null ); So if you’re calling this function on every page load, or even just when your admin page is loaded, then you’re automatically deleting your option. You should put a check in your function to make … Read more
Consider using an external directory to store such dependencies for your scenario like WP_CONTENT_DIR.’/plugin-templates’ (other then your real plugin folder) or smth. And allow users to remove it manually when they really want to uninstall. I don’t think you should delete plugins to update them… BUT I NEVER USED THE DEFAULT UPDATER (I disable it … Read more
WordPress is quite limited when it comes to managing media, it has no real media API, your best to look for a solution that specializes in photos, like Picasa, Smugmug, iPhoto, jalbum, etc. You can also integrate these services into WordPress since some of them have an API. If you need more features you should … Read more
You should install the plugin and reference it inside of a function within your theme. Be sure to check to make sure the expected plugin/function actually exist. Then you can just use it’s functionality as you see fit!
The fourth parameter of add_menu_page is the menu slug. Hence the form action should start with: admin.php?page=vsp_settings_page, if you want to stay on said page. If your form is correctly written, it should populate the query string in the URL. You should have probably posted all your form’s markup. Is there something along the lines … Read more
Basically you have three parameters here: Current server time Schedule start time Schedule end time Then your task boils down to using custom field parameters in query to request posts with two conditions: schedule start hour is smaller than current hour schedule end hour is larger than current hour
you don’t need any plugin.just add this code to your function.php file which you will find in your theme folder. add_action( ‘init’, ‘blockusers_init’ ); function blockusers_init() { if ( is_admin() && current_user_can( ‘subscriber’ ) ) { wp_redirect( home_url() ); exit; } }
If you move to using BBpress 2, BBpress 2 uses custom post types and is a plugin of WordPress. This would let you do the above query using standard WordPress calls, and WP_Query. You would then automatically inherit all of the caching systems WordPress uses, and support for things like W3 Total Cache DB caching … Read more
Don’t know if this could help you, I used this to manage a image field from a meta-box in the post admin page : add_action( ‘load-post.php’, ‘ImageOnSlider_scripts’ ); add_action( ‘load-post-new.php’, ‘ImageOnSlider_scripts’ ); function ImageOnSlider_scripts() { wp_enqueue_script(‘media-upload’); wp_enqueue_script(‘thickbox’); wp_register_script(‘my-upload’, WP_THEME_URL.’/js/name_of_script.js’, array(‘jquery’,’media-upload’,’thickbox’)); wp_enqueue_script(‘my-upload’); wp_enqueue_style(‘thickbox’); } and the JS : jQuery(document).ready(function() { jQuery(‘#upload_image_button’).click(function() { formfield = jQuery(‘#input-ImageOnSlider’).attr(‘name’); tb_show(”, … Read more