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

Activate a plugin through PHPMyAdmin or FTP?

I fixed this by going through PHPMyAdmin to the table “Options” and then the row active_plugins. I had the following stored there (formatted for readability): a:10:{ i:0;s:49:”1and1-wordpress-wizard/1and1-wordpress-wizard.php”; i:1;s:29:”acf-repeater/acf-repeater.php”; i:2;s:30:”advanced-custom-fields/acf.php”; i:3;s:45:”limit-login-attempts/limit-login-attempts.php”; i:4;s:27:”redirection/redirection.php”; i:6;s:33:”w3-total-cache/w3-total-cache.php”; i:7;s:41:”wordpress-importer/wordpress-importer.php”; i:8;s:24:”wordpress-seo/wp-seo.php”; i:9;s:34:”wpml-string-translation/plugin.php”; i:10;s:38:”wpml-translation-management/plugin.php”; } I added a new line (for the missing plugin) and incremented the a:10 to a:11 to indicate that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)