$wp_filesystem returns NULL. What are the dependencies?

$wp_filesystem is a global variable containing the instance of the (auto-)configured filesystem object after the filesystem “factory” has been run. To run the factory “over” the global variable (so to set it), just call the WP_Filesystem() function which is, guess what, undocumented in codex. At least the docblock contains some information and you can read … Read more

How to give image source in wordpress page editor?

You can define constant in theme function file as: if( !defined(THEME_IMG_PATH)){ define( ‘THEME_IMG_PATH’, get_stylesheet_directory_uri() . ‘/site/images’ ); } and then you can use img tag as <img src=”https://wordpress.stackexchange.com/questions/252559/<?php echo THEME_IMG_PATH; ?>/footLogo.png” style=”padding: 0px!important; color:white”>