module Wpxf::WordPress::Urls
Provides helper methods for generating commonly used WordPress
URLs.
Public Instance Methods
@return [String] the WordPress
admin URL.
# File lib/wpxf/wordpress/urls.rb, line 53 def wordpress_url_admin normalize_uri(full_uri, 'wp-admin/') end
@return [String] the WordPress
admin AJAX URL.
# File lib/wpxf/wordpress/urls.rb, line 58 def wordpress_url_admin_ajax normalize_uri(wordpress_url_admin, 'admin-ajax.php') end
@return [String] the admin / plugin options URL.
# File lib/wpxf/wordpress/urls.rb, line 128 def wordpress_url_admin_options normalize_uri(wordpress_url_admin, 'admin.php') end
@return [String] the WordPress
admin post URL.
# File lib/wpxf/wordpress/urls.rb, line 63 def wordpress_url_admin_post normalize_uri(wordpress_url_admin, 'admin-post.php') end
@return [String] the edit profile page URL.
# File lib/wpxf/wordpress/urls.rb, line 113 def wordpress_url_admin_profile normalize_uri(wordpress_url_admin, 'profile.php') end
@return [String] the WordPress
admin update URL.
# File lib/wpxf/wordpress/urls.rb, line 68 def wordpress_url_admin_update normalize_uri(wordpress_url_admin, 'update.php') end
@return [String] the WordPress
ATOM URL.
# File lib/wpxf/wordpress/urls.rb, line 33 def wordpress_url_atom normalize_uri(full_uri, 'feed/atom/') end
@return [String] the comment poster URL.
# File lib/wpxf/wordpress/urls.rb, line 123 def wordpress_url_comments_post normalize_uri(full_uri, 'wp-comments-post.php') end
@return [String] the WordPress
login URL.
# File lib/wpxf/wordpress/urls.rb, line 6 def wordpress_url_login normalize_uri(full_uri, 'wp-login.php') end
@return [String] the WordPress
new user URL.
# File lib/wpxf/wordpress/urls.rb, line 103 def wordpress_url_new_user normalize_uri(wordpress_url_admin, 'user-new.php') end
@return [String] the WordPress
OPML URL.
# File lib/wpxf/wordpress/urls.rb, line 48 def wordpress_url_opml normalize_uri(full_uri, 'wp-links-opml.php') end
@return [String] the WordPress
plugin install URL.
# File lib/wpxf/wordpress/urls.rb, line 93 def wordpress_url_plugin_install normalize_uri(wordpress_url_admin, 'plugin-install.php') end
@return [String] the WordPress
plugin uploader URL.
# File lib/wpxf/wordpress/urls.rb, line 98 def wordpress_url_plugin_upload normalize_uri(wordpress_url_admin, 'plugin-install.php?tab=upload') end
@return [String] the WordPress
plugins URL.
# File lib/wpxf/wordpress/urls.rb, line 78 def wordpress_url_plugins normalize_uri(wordpress_url_wp_content, 'plugins') end
@return [String] the WordPress
RDF URL.
# File lib/wpxf/wordpress/urls.rb, line 28 def wordpress_url_rdf normalize_uri(full_uri, 'feed/rdf/') end
@return [String] the WordPress
readme file URL.
# File lib/wpxf/wordpress/urls.rb, line 38 def wordpress_url_readme normalize_uri(full_uri, 'readme.html') end
@return [String] the base path of the REST API introduced in WordPress
4.7.0.
# File lib/wpxf/wordpress/urls.rb, line 118 def wordpress_url_rest_api normalize_uri(full_uri, 'wp-json') end
@return [String] the WordPress
RSS URL.
# File lib/wpxf/wordpress/urls.rb, line 23 def wordpress_url_rss normalize_uri(full_uri, '?feed=rss2') end
@return [String] the WordPress
sitemap URL.
# File lib/wpxf/wordpress/urls.rb, line 43 def wordpress_url_sitemap normalize_uri(full_uri, 'sitemap.xml') end
@return [String] the WordPress
themes URL.
# File lib/wpxf/wordpress/urls.rb, line 83 def wordpress_url_themes normalize_uri(wordpress_url_wp_content, 'themes') end
@return [String] the WordPress
uploads directory.
# File lib/wpxf/wordpress/urls.rb, line 108 def wordpress_url_uploads normalize_uri(wordpress_url_wp_content, 'uploads') end
@return [String] the WordPress
wp-content URL.
# File lib/wpxf/wordpress/urls.rb, line 73 def wordpress_url_wp_content normalize_uri(full_uri, wp_content_dir) end
@return [String] the WordPress
XMLRPC URL.
# File lib/wpxf/wordpress/urls.rb, line 88 def wordpress_url_xmlrpc normalize_uri(full_uri, 'xmlrpc.php') end