[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

oiksc_404_handler::another_like() – Find potential matches to the query

You appear to be a bot. Output may be restricted

Description

Find potential matches to the query

See if we can improve on the query to find a potential match WordPress has already run some queries to find a match e.g.

[bw_sql 12 0.001407 wp;WP::main;WP::query_posts;WP_Query::query;WP_Query::get_posts] 

SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.post_name = 'bbb_oik' 
AND wp_posts.post_type = 'oik-plugins' 
ORDER BY wp_posts.post_date DESC [/bw_sql] 

[bw_sql 13 0.004388 wp_old_slug_redirect] 

SELECT post_id FROM wp_postmeta,  wp_posts WHERE ID = post_id 
AND post_type = 'oik-plugins' AND meta_key = '_wp_old_slug' AND meta_value = 'bbb_oik'[/bw_sql] 

[bw_sql 14 0.001277 redirect_canonical;redirect_guess_404_permalink] 

SELECT ID FROM wp_posts WHERE post_name LIKE 'bbb\\_oik%' 
AND post_type = 'oik-plugins' AND post_status = 'publish'[/bw_sql] 

Perhaps we should choose just one of the words 
or the first character 

We don't want to waste too long as this might be a robot messing about. 

Google would do a lookup of the common mistakes and find it that way 
We could use omniquery or some other search 

Usage

oiksc_404_handler::another_like();

Parameters

Returns

void

Source

File name: oik-shortcodes/classes/class-oiksc-404-handler.php
Lines:

1 to 6 of 6
  function another_like() {
    $name = $this->get_name();
    $name = substr( $name, 0, 1 );
    $like = $name;
    return( $like );
  }
 

 View on GitHub

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Published: March 11, 2017 | Last updated: March 11, 2017

Information

Function name: oiksc_404_handler::another_like
Class ref: oiksc_404_handler
Plugin ref: oik shortcode and API server
Version: 1.36.0
Sourcefile: classes/class-oiksc-404-handler.php
File ref: classes/class-oiksc-404-handler.php
Deprecated?: No
API Letters: #,A,H,L,O

Recent plugin updates

oik-bwtrace v3.0.0-RC2 oik-bwtrace v3.0.0-RC2 includes fixes for many more issues.  ...
oik v3.3.7 

oik v3.3.7 fixes a problem introduced in 3.3.6

 ...
oik-bob-bing-wide v1.32.0 

Update for improvements to the [bw_plug] shortcode… used on blocks.wp-a2z.org

 ...
oik v3.3.6 Upgrade to oik v3.3.6 for improved compatibility with the WordPress Block editor. ...
oik v3.3.4 

Upgrade to oik v3.3.4 to avoid a deprecated filter notice being displayed if using a custom login logo with WordPress 5.2 and when WP_DEBUG is true.

 ...

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

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


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