inviting people to blog and editing roles

By the below code you can give contributor to upload image. function rwc_allow_contributor_uploads() { $contributor = get_role(‘contributor’); $contributor->add_cap(‘upload_files’); } add_action(‘admin_init’, ‘rwc_allow_contributor_uploads’);` And admin will review the post and then publish it.

2 WordPress sites with 2 databases but sharing the same users

It’s not possible in WordPress to have shared users between 2 separates installations on 2 separated databases. It could be possible just by hardcoding: hardcode WP_User class connect to other database and retrieve users from there hardcode get_metadata() function, that for wp_usermeta table connect to other database and retrieve users from there but mentioned solution … Read more

Sending post information to a coldfusion site.

I’d personally go with WebHooks (or something similar). »Mitcho« already designed a plugin for that, called HookPress. Webhooks are a simple paradigm for developing instant notifications and mashups based on simple HTTP requests. With HookPress you can set up webhooks so that a specified URL (a public service or something you set up) is requested … Read more

How can I override print_embed_sharing_dialog() in WordPress 4.5

You can’t modify the core function’s output, but you can replace it with your own function by unhooking it from embed_footer and adding your own function with custom output: remove_action( ’embed_footer’, ‘print_embed_sharing_dialog’ ); add_action( ’embed_footer’, ‘my_custom_sharing_dialog’, 9 ); function my_custom_sharing_dialog() { // write your own dialog html here } (I added it back with a … Read more

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