[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

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

Called by

1 to 2 of 2
  • oiksc_404_handler::another_like_api() – Alternative ‘like’ API – tbc
  • oiksc_404_handler::handle_oik_plugins() – oik-plugins 404 handler

Invoked by

    Calls

    1 to 1 of 1
    • oiksc_404_handler::get_name() – Get the name specified

    Call hooks

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

    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 block shortcode and API server
    Version: 1.41.5
    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-weight-zone-shipping v0.2.13 oik-weight-zone-shipping v0.2.13 has been tested with WooCommerce 10.1.2 and WordPress 6.8.2 ...
    SB Children Block v1.3.0 Upgrade to SB Children Block v1.3.0 for support for PHP 8.3 and PHP 8.4  ...
    oik v4.15.3 Update to oik v4.15.3 for a couple of security fixes. Tested with WordPress 6.8.2 ...
    oik-privacy-policy v1.4.9 Update to oik-privacy-policy v1.4.9 for a security fix. Tested with WordPress 6.8.2 and PHP 8.3 and PHP 8.4 ...
    oik-nivo-slider v1.17.0 oik-nivo-slider v1.17.0 introduces the Nivo slider block - oik-nivo-slider/nivo. ...

    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-2025. All rights reserved.


    Website designed and developed by Herb Miller of Bobbing Wide
    Proudly powered by WordPress and oik-plugins

    WordPress version: 6.8.3

    Gutenberg version: 21.7.0

    PHP version: 8.2.29