Echo simple string in Plugin

A subtle difference between your syntax wp-footershould be wp_footer, underscore _ and not hypthen – add_filter(‘wp-footer’, fahad); // wrong… add_filter(‘wp_footer’, ‘fahad’); // right.. Follow the naming convention of functions: (Codex) Plugin_API: Action_Reference » the wp_footer hook (Codex) Plugin_API: Action_Reference (Codex) Function_Reference

Override plugin localization

From what you are saying you have translated your plugin and now you want to be sure the future update won’ be overwritten. So to avoid that happening you can always put your po/mo translation files (if provided) in global languages folder that is located on your server in wp-content/languages/plugins folder. If plugin have language … Read more

Dashboard like meta boxes in my plugin – how to save their position and open/closed state?

When ordering or closing metaboxes, those actions require nonces, add the following to your code and see if that resolves the problem. <?php wp_nonce_field(‘closedpostboxes’, ‘closedpostboxesnonce’, false ); ?> <?php wp_nonce_field(‘meta-box-order’, ‘meta-box-order-nonce’, false ); ?> Additional: You should add metaboxes to your page using add_meta_box and output them using do_meta_boxes passing in the hook for your … Read more

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