Theme Development, WordPress

file_get_contents was found in the file – A complete solution to overcome it

If you are developing a premium theme for WordPress.org or Themeforest, then you must be familiar with the following error “file_get_contents was found in the file”. If you encounter this error message, operations should use the WP_Filesystem method instead of the direct PHP filesystem. To remove this warning, you have to use WP_Filesystem instead of file_get_contents to acquire content from a specific file.

Read More...