disabling ftp on wordpress

Problem solved. Incorrect wordpress file permissions. Reset all wordpress files with sudo chown -R www-data:username wordpress sudo chmod 755 -R wordpress and the problem disappeared.

What are admin hooks

The init hook is triggered a little earlier than the admin_init. Between them is triggered wp_loaded and few hooks related to updating the DB. The init hook fires when WP is finished loading (viewer-facing and administration side). The admin_init hook fires on administration side only (/wp-admin/*), therefore is triggered also by front- and back-end ajax … Read more

List category posts displaying limited posts

It might be because of pagination. Check you /wp-admin settings. Also, try to set numberposts=-1. Source: https://github.com/picandocodigo/List-Category-Posts/wiki/More-parameters-you-can-use numberposts – Number of posts to return. Set to 0 to use the max number of posts per page. Set to -1 to remove the limit. Ex: [catlist name=mycategory numberposts=10] You can set the default number of posts … Read more

Sanitizing file & directory form input

The function that you would want to use is sanitize_text_field() which among other things, strips all HTML tags, and remove line breaks, tabs and extra white space. // This worked fine for me – I got /directory/subdirectory/ $value = sanitize_text_field( ‘/directory/subdirectory/’ ); // And so does this one – I got /thisfile.min.js $value = sanitize_text_field( … Read more