How to disable style filtering in post?

Embedding a div container with an inline style attribute is not the way to do it. Your problem of WordPress stripping out certain attributes is a side effect of your real problem, not the problem itself. You shouldn’t be styling things inline, this isn’t 1997, use CSS classes instead You shouldn’t need to put custom … Read more

Multiple WordPress on Virtual Host

Thanks for comments. I can manage to host two separate WordPress site on VirtualHost EC2 Linux AMI. My mistake is I have created the vhost.conf file in under /etc/httpd/conf.d. Correct way to enable VirtualHost on EC2 Linux AMI is as follow : go to /etc/httpd/conf open httpd.conf file go to end of file uncomment NameVirtualHost … Read more

Is there a way to add a function that will get run after a blog is created?

Have you tried the action ‘wpmu_new_blog’ . The docstring for the function ‘wpmu_create_blog’ says: This function runs when a user self-registers a new site as well as when a Super Admin creates a new site. Hook to ‘wpmu_new_blog’ for events that should affect all new sites. wpmu_new_blog is called with the following parameters: do_action( ‘wpmu_new_blog’, … Read more

load styles and scripts in network admin not working

A bit of research on here and it seems I was trying too hard. I have found the following solution. Props to this answer. // Create admin page navigation listings function bf_carrier_admin_network() { $hook_suffix = add_submenu_page(‘settings.php’, ‘Carriers’, ‘BrightFire Carriers’, ‘edit_posts’, ‘ins-carrier-edit’, ‘carrier_admin_network’); add_action( “load-{$hook_suffix}”, ‘bfc_styles_scripts’ ); } add_action(‘network_admin_menu’, ‘bf_carrier_admin_network’); function bf_carrier_admin_display() { if (current_user_can(‘manage_options’)){ $hook_suffix … Read more

Plugin data shared in Multisite

You are asking a question that is specific to a plugin and not WordPress. How the plugin functions depends entirely on the plugin author’s design. Reading the article above, sure the plugin works in WP multsite, but as the author mentions extra works needs to be done to share that content among other mulisite sites. … Read more