How to set CORS header?

Fixed it by adding Header set Access-Control-Allow-Origin “*” in apache2.conf: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted Header set Access-Control-Allow-Origin “*” </Directory>

custom image size with New Media Manager in wordpress 3.5

You will need to paste your code in order for us to review where the issue is, however, I can demonstrate how I accomplish this in WordPress v3.5 Please observe the comments in my_insert_custom_image_sizes: function my_insert_custom_image_sizes( $sizes ) { // get the custom image sizes global $_wp_additional_image_sizes; // if there are none, just return the … Read more

Extra Alignment buttons on media uploader screen

I think your real problem here though is timing, in that you should only do the remove_action and add_action in the wp_enqueue_media action fired at the end of the wp_enqueue_media() function, after it has added the action you’re replacing: add_action( ‘wp_enqueue_media’, function () { if ( ! remove_action( ‘admin_footer’, ‘wp_print_media_templates’ ) ) { error_log(“remove_action fail”); … Read more

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