[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

shortcodes/oik-blogs.php


Lines:
1 to 100 of 100
<?php // (C) Copyright Bobbing Wide 2013


/**
 * List blogs in a WordPress MultiSite environment 
 * 
 * This reinstates part of the deprecated get_blog_list() function for use with oik-ms
 * Notes: 
 * - oik-ms should only be installed in a WPMS environment where you are happy for other sites and their content to be accessed
 * - There is no security in this code over and above the existing WordPress MS security
 * - DON'T use this function in a large WPMS installation as the list can be very large
 * 
 * Alternative function NOT used: 
 * $wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' );
 * 
 * @return mixed - array of arrays [ "blog_id" 
 */
/*  function bw_get_blog_list() – List blogs in a WordPress MultiSite environment */


/**
 * Display information about each blog in the array of blogs
 * 
 */
/*  function bw_display_blogs() – Display information about each blog in the array of blogs */


/**
 * Get all blog details - whether by ID or blog name
 * 
 * @param $blog - blog ID or blog name or array of fields
 * @return mixed - $bloginfo
 (
    [blog_id] => 1
    [site_id] => 1
    [domain] => qw
    [path] => /wpms/
    [registered] => 2012-01-08 15:28:21
    [last_updated] => 2013-09-10 13:14:08
    [public] => 1
    [archived] => 0
    [mature] => 0
    [spam] => 0
    [deleted] => 0
    [lang_id] => 0
    [blogname] => WordPress Multi Site
    [siteurl] => http://qw/wpms
    [post_count] => 6
)

 
 */
/*  function bw_get_bloginfo() – Get all blog details – whether by ID or blog name */


/**
 * Display a blog option or shortcode
 */
/*  function bw_display_blog_field() – Display a blog option or shortcode */


/**
 * Display information about a blog in a particular format
 *
 */
/*  function bw_display_blog() – Display information about a blog in a particular format */


/** 
 * Implement [bw_blogs] shortcode to list the blogs on the multisite
 * 
 * @param array $atts - expected to either contain "blogs" or uses the index 0 values
 * @param string $content - not expected
 * @param string $tag - the shortcode used
 * @return string - nothing is generated directly by this shortcode
 */
/*  function bw_blogs() – Implement [bw_blogs] shortcode to list the blogs on the multisite */


/**
 * Help hook for "bw_blogs" shortcode
 */
/*  function bw_blogs__help() – Help hook for "bw_blogs" shortcode */


/**
 * Syntax hook for "bw_blogs" shortcode
 */
/*  function bw_blogs__syntax() – Syntax hook for "bw_blogs" shortcode */


/**
 *
 */
 
  



 
 View on GitHub

Called by

    Invoked by

      Calls

      Call hooks

      File name: shortcodes/oik-blogs.php
      Plugin ref: oik-ms – oik MultiSite shortcodes
      Version: 0.1
      Deprecated?: No
      API Letters:

      Published: August 17, 2014 | Last updated: August 17, 2014

      Information

      File name: shortcodes/oik-blogs.php
      Plugin ref: oik-ms – oik MultiSite shortcodes
      Version: 0.1
      Deprecated?: No
      API Letters:

      Recent plugin updates

      UK-tides v3.1.1 UK-tides v3.1.1 is built with the latest wp-scripts. It's been tested with WordPress 6.2 and Gutenberg 15.7.0 ...
      oik-weight-zone-shipping v0.2.6 oik-weight-zone-shipping v0.2.6 has been tested with WooCommerce 7.4.0. ...
      sb-chart-block v1.2.3 SB Chart Block v1.2.3 contains a fix for an Uncaught Error: Call to undefined function bw_trace2()  ...
      SB Chart Block v1.2.1 Update to SB Chart Block v1.2.0 for custom colors, font size options and multiple y-axis charts.  ...
      oik-css v2.1.0 Update to oik-css v2.1.0 for the ability to style CSS and GeSHi output in documentation. ...

      Plugins

      • All Plugins
      • oik base plugin
      • FREE oik plugins
      • WordPress plugins
      • Premium oik plugins

      Themes

      • FREE themes
      • Bespoke themes
      • Premium themes

      Blocks

      • All Blocks
      • Block examples
      • About Blocks

      Shortcodes

      • All Shortcodes
      • Shortcode examples
      • About Shortcodes

      Reference

      • About APIs
      • All APIs
      • All Classes
      • All Files
      • All Hooks

      Support

      • Contact
      • Cookies policy
      • Get API key
      • Privacy
      • Request support
      • Sitemap
      • Stay informed
      • Terms and Conditions
      oik-plugins
      Email: herb@bobbingwide.com

      Weight shipping plugins

      Find out which cart weight shipping plugin you need for your WooCommerce site.
      Which cart weight based plugin do I need?

      Site:  www.oik-plugins.com
      © Copyright oik-plugins 2011-2023. All rights reserved.


      Website designed and developed by Herb Miller of Bobbing Wide
      Proudly powered by WordPress and oik-plugins
      WordPress 6.2.2. PHP: 7.4.33. Memory limit: 768M