add pages to menu
This code is used to create a new top-level menu page in the WordPress admin panel. The $page_title and $menu_title
This code is used to create a new top-level menu page in the WordPress admin panel. The $page_title and $menu_title
This code creates a new top-level menu page in the WordPress admin panel. The first parameter is the page title,
This code opens a zip file called ‘test.zip’ and adds a file called ‘test.txt’ to it. It then closes the
‘ => ‘</section>’, ‘before_title’ => ‘<h2 class=”widget-title”>’, ‘after_title’ => ‘</h2>’, ) ); } This code is used to create a
This code defines a custom function and then adds an action to call that function when the wordpress ‘init’ action
gt;0.8</priority> </url> <url> <loc>http://example.com/catalog?item=12&desc=vacation_hawaii</loc> <changefreq>weekly</changefreq> </url> <url> <loc>http://example.com/catalog?item=73&desc=vacation_new_zealand</loc> <lastmod>2004-12-23</lastmod> <changefreq>weekly</changefreq> </url> <url> <loc>http://example.
This wordpress code specifies an alternate version of the page for visitors using a different language. The “x-default” value indicates
gt;Mon, 13 Jul 2015 12:00:00 +0000 </lastBuildDate> <language>en-US</language> This code defines an XML document for a WordPress site. The document
the sitemap as an XML file $fp = fopen(ABSPATH . ‘sitemap.xml’, ‘w’); fwrite($fp, $sitemap->asXML()); fclose($fp); ?> This code creates a
The code above will add the “X-Frame-Options: SAMEORIGIN” header to all HTTP responses sent from WordPress. This header tells browsers
The code above is used to display a sidebar on a wordpress page. The sidebar will contain the widgets that
The code creates a footer widget area, with room for multiple widgets. Each widget will be placed in a div
The above code checks to see if the “register_sidebar” function exists, and if it does, it runs that function. The
This code sets the default WordPress editor to the “tinymce” editor. The “tinymce” editor is a visual editor that allows
The code is for a WordPress plugin or theme. It checks to see if the “register_sidebar” function exists, and if
register sidebar in WordPress. You can use this code snippet to create a sidebar.
This code creates a new variable with a value and then adds it to the page.