Allow arbitrary text after page URL

This approach is not advisable as http://example.com/page/whatever-information/ is how WordPress deals with child pages and .htaccess Rewrites is part of how WordPress identifies what page is being requested and what queries to run. You should probably pass the whatever-information as something called a POST variable, then have code that runs on page and parses these … Read more

Disallow “contributors” to edit their own posts once they’ve been set to “Pending Review”

You can do this by checking if the post author is a contributor and post status is pending before the post is saved. Before the post is saved: add_filter( ‘wp_insert_post_data’, ‘disallow_edit_pending_3748’, 99, 2 ); function disallow_edit_pending_3748( $post_data, $post_array ){ if( ‘pending’ == $post_data[‘post_status’] && current_user_can( ‘contributor’ ) ){ // there’s no other way to do … Read more

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