Call javascript function when category was added via ajax

Recently, I just have the same problem and got the solution. use ajaxSuccess event since we need to reset input when ajax is completed. filter the settings data for specific action and screen. Code: $(document).ajaxSuccess(function(e, request, settings){ var object = $.deparam(settings.data); if(object.action === ‘add-tag’ && object.screen === ‘edit-category’ && object.taxonomy === ‘category’){ //DO RESET Your … Read more

hide certain template files in apearance editor

Yes, there is a way to hide template files from WordPress’ Appearance Editor. All you need to do is move the files so that it is two folders deep from your theme folder. theme-folder/two/folders/template.php Doing this should keep it from showing up in the editor. Hope this helps.

WordPress Admin Interface not styled properly

I believe the wordpress URL and site URl are not set right. Please try to edit your wp-config.php adding these lines: define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); Is your index on same folder as wp installation? if not, you need to place it there. I’m talking about placing the URL in the above lines, not the index on the … Read more

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