Skip to main content
12 events
when toggle format what by license comment
Apr 17, 2017 at 0:17 history tweeted twitter.com/StackWordPress/status/853764353874702336
Sep 20, 2016 at 6:17 answer added Jahirul Islam Mamun timeline score: 1
Jun 8, 2015 at 5:29 history edited s_ha_dum CC BY-SA 3.0
added 3 characters in body
Sep 10, 2014 at 13:11 answer added berdi timeline score: 9
Jan 18, 2014 at 0:11 comment added Toniq Ok, I get it now, I call these in my add_shortcode function, so its executed in shortcode, which means its not an admin? What are my options?
Jan 18, 2014 at 0:04 comment added Toniq I have place this after I call global $wp_filesystem; and I get NULL. If I place WP_Filesystem(); I also get Fatal error: Call to undefined function WP_Filesystem()
Jan 17, 2014 at 23:54 history edited Toniq CC BY-SA 3.0
added 29 characters in body
Jan 17, 2014 at 23:37 comment added s_ha_dum Try var_dump($wp_filesystem);. What do you get?
Jan 17, 2014 at 22:39 comment added Toniq Yes, I do call global $wp_filesystem; just before I execute put_contents. Does put_contents write to an exisiting file or does it create a file like file_put_contents does?
Jan 17, 2014 at 22:29 review First posts
Jan 17, 2014 at 23:00
Jan 17, 2014 at 22:24 comment added Jeremiah Prummer My guess is that either $this or $wp_filesystem are not properly declared, as both of these should be calling other classes. Make sure you're calling the global $wp_filesystem;
Jan 17, 2014 at 22:13 history asked Toniq CC BY-SA 3.0