get_defined_vars — Returns an array of all defined variables
get_defined_functions — Returns an array of all defined functions
You should be careful about the location in the code, because if you are inside a function it will work only for this function.
get_defined_constants – Returns list all defined constants with their respective values
get_declared_classes – Returns list all declared classes
memory_get_usage — Returns the amount of memory allocated to PHP
To create a plugin, all you need to do is create a folder and then create a single file. First go to the wp-content/plugins folder, and create a new folder named myPlugin. Inside this new folder, create a file named myPlugin.php. Open the file in a text editor, and paste the following information in it:
Plugin Name: myPlugin Creator
Plugin URI: http://www.nikolaynikolov.net
Description: My fist plugin
Author: Nikolay Nikolov
Author URI: http://www.nikolaynikolov.net
You can go into the back end to activate your plugin. Of course, this plugin doesn’t do anything, but you can add functionality by yourself.
Continue reading “Create WordPress Plugin” »
If your task is to make your CSS media queries to work in most browsers and older versions of IE (7-8), all you need to do is to include Polyfills. Polyfills are js and you can download them from https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills. I can recommend you Respond by Scott Jehl.
If you have for a task to show google maps location using just the address the following script should help you.
Here is the HTML code
Boulevard Mansions, Borough Road, SE1, United Kingdom
We will use the predefined address from the div with id=”mapsaddress” and will get the coordinates needed for Google Maps API. Don’t forget to use your own google map key!
You can also check the working DEMO.