add_theme_page is not working

You created the callback function and the function for adding the Theme page, but you also have to tell WordPress when to call your function my_plugin_menu. You can do this by hooking into admin_menu. add_action(‘admin_menu’, ‘my_plugin_menu’); This way WordPress knows that when it reaches the Scripts for admin_menu, it also has to execute your code, … Read more

Custom image size doesn’t work

Your custom size will only show up as an option if the selected image exists at those dimensions. So, have you uploaded any images since adding the new image size to functions.php? If not, then you won’t see the vividflow option. You could always run regenerate thumbnails so bring your older images up to date.

How to throw the “We need ftp info” at a user

simple function: protected function _cred_check(){ $aisis_file_system_structure = WP_Filesystem(); if($aisis_file_system_structure == false){ echo ‘<div class=”alert”><strog>NOTE!</strong> We need your ftp creds before we continue!</div>’; return true; } return false; } then do: if($this->_cred_check()){ request_filesystem_credentials(‘your/link/to/your/update/page’); }else{ // your update stuff }