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 }

Extending arrays in parent theme without completely overriding the files

I don’t know exactly how your themes– parent and child– are constructed but the child theme’s functions.php loads before the parent’s. So, if this template is included via functions.php changes you attempt to make in the child functions.php to that $Icons array will be overwritten as soon as the parent function.php loads. Since you say … Read more

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