Filter DELETE REST API calls

pre_delete_post hook filters whether a post deletion should take place. So callback function must return a boolean value: true – whether to go forward with deletion, false – if not. pre_trash_post hook filters whether a post trashing should take place. So callback function must return a boolean value: true – whether to go forward with … Read more

Problem Installing a Premium Theme– File Permission Issue on a Mac, Local Machine? [closed]

Laxmidi: You wouldn’t FTP to your local installation of WordPress, which is under some directory that you have assigned with MAMP. Wherever that directory lives, you must unpack your theme.zip folder on your desktop, then move the theme into /wordpress/wp-content/themes Once you add move your downloaded theme directory into WordPress, you should see the Theme … Read more

Permission of 775 not enough

The “user” running your webserver (sometimes _www, sometimes www-data, sometimes “nobody”) lacks the permissions to edit these files. You can either change them to be owned by that user or change them to 777. To find out what your web server user is, assuming you’re running apache, run ps aux | grep httpd in the … Read more

wp-content Folder Permissions (777 OK?)

As listed down the bottom (http://codex.wordpress.org/Changing_File_Permissions#The_dangers_of_777) having 777 permissions allows anybody with know how to go in and modify and execute your code making it available to hackers. I was reading an article yesterday and it stated that about 80% of all hacks came from uploading/inserting a file into the uploads folder creating a backdoor … Read more

Problem with admin login after deployment

I suspect either the culprit is one of the plugins or the theme you are using. so, try: -deactivating ALL plugins temporarily to narrow down the problem. If the problem goes away, activate them individually (one-by-one) to find the problematic plugin. If you don’t have access to your admin area, try deactivating plugins manually via … Read more

User permissions to upload images

Only logged in user can upload media from front end. Below code will allow users to see only their media files and not others. Put this in your theme’s functions.php file. I hope this helps. add_action( ‘pre_get_posts’, ‘users_own_attachments’); function users_own_attachments( $wp_query_obj ) { global $current_user, $pagenow; if ( $pagenow == ‘upload.php’ || ( $pagenow == … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)