Skip to content

Instantly share code, notes, and snippets.

View tejasbusiness's full-sized avatar

Tejas Gandhi tejasbusiness

View GitHub Profile
Search Operator Explanation Use Case Example
stocks: Displays stock information for a company. Quickly access stock data. stocks:GOOG
weather: Displays weather information for a location. Check weather conditions. weather:New York
map: Searches for map locations. Locate places directly on Maps. map:Statue of Liberty
movie: Displays movie showtimes and details. Find movie-related information. movie:Inception
source: Restricts results to a specific news source. Locate articles from specific publishers. source:BBC technology
before: / after: Restricts results to dates before/after a specified date. Find content within a timeframe. SEO tips before:2020
Search Operator Explanation Use Case Example
allintitle: Searches for pages with all words in the title. Refine searches for specific titles. allintitle:SEO tools guide
allinurl: Searches for pages with all words in the URL. Locate pages with multiple keywords. allinurl:blog SEO marketing
AROUND(X) Finds terms within X words of each other. Discover closely related terms in text. digital AROUND(3) marketing
info: Provides indexed information about a webpage. Discover detailed site information. info:example.com
link: Finds pages linking to a specific URL. Analyze backlinks for SEO. link:example.com
inanchor: Searches for pages with specified anchor text. Analyze anchor text usage. inanchor:buy laptops
search term Searches for the exact phrase within quotes. Use when you need an exact match. "digital marketing strategies"
- Excludes results containing the specified term. Filter out irrelevant results. SEO -tools
site: Restricts search to a specific website or domain. Find content on a specific site. site:example.com SEO tips
intitle: Searches for pages with specific words in the title. Find topic-focused pages. intitle:blogging tips
inurl: Searches for pages with specific words in the URL. Locate pages with keywords in the URL. inurl:resources
filetype: Searches for specific file types like PDFs. Find downloadable resources. marketing plan filetype:pdf
OR Finds results containing either of the terms. Broaden search to include alternative terms. SEO OR SEM
@tejasbusiness
tejasbusiness / functions.php
Created December 4, 2020 20:23 — forked from alexander-young/functions.php
Cleanup WordPress plugin admin
// Removing plugin controls from admin
function remove_plugin_controls($actions, $plugin_file, $plugin_data, $context){
if (array_key_exists('edit', $actions)) {
unset($actions['edit']);
}
if (array_key_exists('deactivate', $actions)) {
@tejasbusiness
tejasbusiness / my_pmproal_before_level_member_badge.php
Created May 30, 2017 03:36 — forked from strangerstudios/my_pmproal_before_level_member_badge.php
Show the Member Badge for each level on the 3 column layout Membership Levels page
<?php
/*
Sample method to show a level's Member Badge on the three column layout of the
Membership Levels page when using the Advanced Levels Page Shortcode Add On.
*/
function my_pmproal_before_level_member_badge( $level_id, $layout ) {
if( function_exists( 'pmpromb_getBadgeForLevel' ) ) {
$image = pmpromb_getBadgeForLevel($level_id);
if( ! empty( $image ) && $layout == '3col' ) {
echo '<img class="pmpro_member_badge" src="' . esc_url($image) . '" border="0" />';