Skip to main content
13 events
when toggle format what by license comment
Dec 21, 2020 at 9:05 answer added Jer timeline score: 2
Jan 26, 2016 at 2:12 answer added nobilis timeline score: -1
Apr 7, 2015 at 14:22 vote accept Shamim Hasan
Apr 6, 2015 at 23:48 answer added s_ha_dum timeline score: 1
Apr 6, 2015 at 16:50 comment added Shamim Hasan how you tested @s_ha_dum ? first code ( which include apply_filters) is in my plugin ( main file which include plugin information ) so that i can include other require files for that plugin. i also add apply_filters so that anybody can include/exclude any file without changing core code of that plugin. Now anybody want to exclude first.php from that code he/she add code ( in my question which have add_filter ) in his/her theme's function.php. How bad is this?
Apr 6, 2015 at 16:40 comment added Shamim Hasan In real plugin code hooks are not too simple.
Apr 6, 2015 at 15:21 comment added s_ha_dum Your code works when I test it. That is going to make it hard to sort out where your particular problem lies. I should point out that requiring hard coding in a theme in order for a plugin to function is pretty bad form.
Apr 6, 2015 at 14:40 comment added butlerblog I would suggest starting with making sure that you don't have a namespace collision. Call your hook something like 'myplugin_include_files' (where "myplugin" is something representing your plugin). Naming the hook too simply could end up with a conflict.
Apr 6, 2015 at 14:18 comment added Shamim Hasan How to be sure? Is there any better way to include files where user can include/exclude any files if needed (using hooks)?
Apr 6, 2015 at 14:10 history edited Pieter Goosen CC BY-SA 3.0
deleted 12 characters in body
Apr 6, 2015 at 14:08 comment added fuxia Are you sure that the plugin code is executed after the theme has been loaded?
Apr 6, 2015 at 14:05 review First posts
Apr 6, 2015 at 14:10
Apr 6, 2015 at 14:05 history asked Shamim Hasan CC BY-SA 3.0