How to stop direct HTTP POST to a PHP script?

You must hook the form using wpcf7_before_send_mail and add your PHP code to functions.php (since the script is already in your theme folder)? You won’t lose any of CF7’s abilities. function wpse_process_form( &WPCF7Object ){ #process your form here } add_action(‘wpcf7_before_send_mail’, ‘wpse_process_form’ );

How do I allow certain users to make a certain type of post?

The following will assign capability requirements to your CPT. So, users will require edit_community, delete_community etc capabilities to perform those actions. function createCommunityPostType() { $args = array( ‘public’ => true, ‘label’ => ‘Community’ ‘capability_type’ => ‘community’, ‘map_meta_cap’ => true ); register_post_type(‘community’, $args ); } add_action(‘init’, ‘createCommunityPostType’); See the parts about capabilities in the codex. You … Read more

Secret keys in SCM

Your config file shouldn’t be public at all. It includes your database credentials in addition to the 8 SALTs WordPress. (The secret keys alone make it possible to brute force your log-in in a bout a week: http://codeseekah.com/2012/04/09/why-wordpress-authentication-unique-keys-and-salts-are-important/)

Hiding Media Source Links

Link to none would only remove the hyperlink from the media. If the user clicks on the media, the media will not open separately in a window / tab. There is no way to hide the link to the resources. There is no security threat of accessing other files from external user.