Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
When you save the option is it saving the custom post type to the new one which youa re assigning?. You may look into that.
When you save the option is it saving the custom post type to the new one which youa re assigning?. You may look into that.
“GUID” stands for “Globally Unique Identifier” mainly used by feeds to tell if that specific post was shown on the feed before or not, even if you change domains. When developing on local host and the moving to live (+1 just for that BTW) and no feed reader/burner has read your feeds and only if … Read more
The action hook save_post is called on save, but i don’t know if you can add metadata at this time. But it should be possible to create/update your meta data after the post was saved with the action hook updated_post_meta. EDIT To pre-select some meta fields (custom fields) on the post creation screen, you have … Read more
Cross-site Scripting Issues You cannot transfer WP auth cookies between domains. You also don’t want to store plaintext passwords for logging into another WP installation programmatically. So, you’ll have to have users log into WordPress, and then access their login status via an API endpoint from the third-party site. This lets WordPress handle all the … Read more
I keep the default themes in place, and keep them updated. The WordPress Foundation will keep those themes updated with any security issues, so as long as you keep them updated on your site, I’m not concerned with security problems. The advantage that you have by keeping them is for testing. When you are troubleshooting … Read more
You can stop the post from saving all together with minor JQuery hacks and validate the fields before saving on the client side or server side with ajax: first we add our JavaScript to capture the submit/publish event and use it to submit our own ajax function before the actual submit: add_action(‘wp_print_scripts’,’my_publish_admin_hook’); function my_publish_admin_hook(){ if … Read more
Is it safe to directly delete all rows in the wp_posts table that have a post_type of revision? (I’ve seen conflicting answers on this—but I’d love to be able to just do it this way if it’s safe) Safe, it’s safe. If there is only one user (you) that can edit posts on the site … Read more
you might consider using if(get_post_mime_type($id) == ‘application/pdf’){ … } to check for pdf files. http://codex.wordpress.org/Function_Reference/get_post_mime_type You might also take a look at the code behind the wp_delete_attachment() function and you can hook into it with the delete attachment action. To remove the files you can use unlink() http://php.net/manual/en/function.unlink.php
I’m going to post a partial answer to start the discussion in the hope of getting some helpful comments to fill in the blanks or alternative answers… Step 1: Install and Set Up boot2docker Docker only runs on Linux. So in order to use Docker on our Mac, we need to install boot2docker, which will … Read more
Siege. Test against both an actual post/page (which would theoretically hit page cache, APC, varnish, etc. for every request after the first request), and against a 404 (e.g., randomly generated strings), which would require database queries on each hit. A few helpful flags: -b benchmark (don’t wait between requests) -c N where N is the … Read more