All Questions
11 questions
0
votes
1
answer
2k
views
a weird attribute on every html tag
me and my friend working on a Wordpress site but we see it differently on our machines,
He sees a weird attribute wfd-id="" on every html tag in google console when he inspect it,
also I loaded ...
0
votes
1
answer
2k
views
Advanced WordPress plugin activation detection
I'm testing the plugin activation detection because something went wrong in my plugin. I discovered the problem, but didn't understand it:
I'm trying to check for plugins activation (others and my ...
0
votes
1
answer
74
views
Am I using an action hook correctly?
I want to extend an existing plugin by writing my own. I think I instantiated it correctly because it appears on the plugin list in the dashboard (although I found it strange that I didn't need to ...
0
votes
3
answers
362
views
Action on WordPress Install
I am trying to use this https://gist.github.com/davejamesmiller/1966425 to fire when I first create WordPress site / "install WordPress" (i.e complete the "5 minute setup") but the wpmu_new_blog ...
0
votes
1
answer
185
views
How wordpress plugin hooks works? [duplicate]
I am new to wordpress development. I am familiar with joomla's ins-and-out working mechanish, now i want to contribute or say learn wordpress. I found that every thing in wordpress is done through ...
2
votes
1
answer
11k
views
Can a plugin add to header/footer/body content?
I am just wrapping up my first WordPress plugin and the last thing I would like to do is take a piece of data that the plugin knows about (from wp_options table) and display it in either the header or ...
0
votes
1
answer
97
views
Plugin Development - Functions or Hooks?
I am brand new to WordPress plugin development and have a few questions, mostly about best practices but also some specifics.
Essentially I just want to trigger an action (invoking a PHP class and ...
29
votes
5
answers
62k
views
How can I edit post data before it is saved?
I have a plugin and I would like to be able to run the post content through some filters before it is saved to the database. From looking at the plugin api, I see that two hooks that look like they ...
3
votes
2
answers
95
views
How can I limit functionality in one version of a plugin?
I am busy writing a plugin with a free version and a paid, Pro version. For our initial release of both versions, I want to keep things as simple as possible, so I would rather defer using a strategy ...
1
vote
1
answer
3k
views
How to get multiple Action Hooks in an Array
Hi I am writing a small plug-in which I get some content from outside of WordPress and I want a small script to trigger whenever a new post, page or comment is added. Also if any Widgets, themes and ...
0
votes
1
answer
344
views
Edit post image attributes on fly?
Greetings, We can edit image attributes with this get_image_tag filter when we are adding images or with regex and filter the_content,but is there any similar filter or action that can we use to edit ...