How to enable suggested edits?

Diff the post content, title and author As had to do something related some month ago, here’s the easiest and most future proof way (that I could fine) to check if there’s a change made to the content or title or if the author changed: // Update Title ” !== wp_text_diff( $el[‘post_title’], $GLOBALS[‘post’]->post_title ) AND … Read more

Difference between add_filter and apply_filters

Most of the following can be found in the Codex: apply_filters The callback functions attached to filter hook $tag are invoked by calling this function. This function can be used to create a new filter hook by simply calling this function with the name of the new hook specified using the $tag parameter. $value = … Read more

Creating a plugin with dependencies

Yes, it is possible to create a plugin that extends another plugin. Here are a few ideas on how you might go about it: A plugin can set up its own action and filter hooks (using the do_action and apply_filter functions) just like the WordPress core does. If the plugin you are targeting does this, … Read more

How do I show data from gravity forms in my template? [closed]

You can look at the docs, but you’ll probably end up reading the real documentation: the source code. If you do, you’ll find that: GFFormsModel::get_leads($form_id) returns a list of entries for a form (maybe you know that one already), where each item in the array is itself an array, an “Entry object“ GFFormsModel::get_form_meta($form_id) returns a … Read more