Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
GetOrgChart 2.5.3
AnyGantt JS Gantt Charts 8.6.0
AnyChart JS Charts and Dashboards 8.6.0
Multi Vendor Ecommerce Script & Apps 4.0
Magento 2 Inventory Management Extension 1.0
Yipit Clone Script - Daily Deals Software 1.0.2
Devart Excel Add-in for Oracle 1.7
Devart Excel Add-in for Freshdesk 1.7
Devart Excel Add-in for G Suite 1.7
C# QR Code Generator 4.0.2.2
Salesforce WordPress Customer Portal 3.2.0
Single Leg MLM 1.2.1
OzGIS 14.6
Quick Maps For Dynamics CRM 3.1
Job Board Software 4.2
Top Code
MCU 8051 IDE 1.4.7
WinPoker 2.02
Farnsworth 1.0
School Management Script 1.0.4
WebKit2.NET 0.10
Simple IP Calculator sub/sup networking 0.0.4
Beremiz 1.0
ASLA 0.14
Ad Juggler 3.0
SynaSer Serial Port Library 5.0
MLM Software 1.0.2
Planyo online reservation system module 6.x-1.8
sipmethod 1.0
STDF file reader 1.0
.NET Obfuscator Standard Edition 6.2.0
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
Hide Broken Shortcodes 1.4
File ID: 93552






Hide Broken Shortcodes 1.4
Download Hide Broken Shortcodes 1.4http://wordpress.orgReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 0
Submit Rating:
Hide Broken Shortcodes 1.4 Description
Description: Prevent broken shortcodes from appearing in posts and pages.

Shortcodes are a handy feature of WordPress allowing for a simple markup-like syntax to be used within post and page content, such that a handler function will replace the shortcode with desired content. For instance, this: [youtube id=abc width=200 ] might be replaced by a plugin to embed a YouTube video into the post with a width of 200. Or: [make_3d]Special News[/make_3d] might be used to make a three-dimensional image of the text contained in the shortcode tag, 'Special News'.

By default, if the plugin that provides the functionality to handle any given shortcode tag is disabled, or if a shortcode is improperly defined in the content (such as with a typo), then the shortcode in question appears on the blog in its entirety, unprocessed by WordPress. At best this reveals unsightly code-like text to visitors and at worst can potentially expose information not intended for visitors' eyes.

This plugin prevents unhandled shortcodes from appearing in the content of a post or page. If the shortcode is of the self-closing variety (the first example above), then the shortcode tag and its attributes are not displayed and nothing is shown in their place. If the shortcode is of the enclosing variety (the second example above), then the text that is being enclosed will be shown, but the shortcode tag and attributes that surround the text will not be displayed (e.g. in the second example above, "Special News" will still be displayed on the site).

A filter is also available by the name of 'hide_broken_shortcode' that allows you to customize what, if anything, gets displayed when a broken shortcode is encountered. Your hooking function can be sent 3 arguments:

* The default display text (what the plugin would display by default)
* The name of the shortcode
* The text bookended by opening and closing broken shortcodes, if present

Example:

add_filter('hide_broken_shortcode', 'hbs_handler', 10, 3);
function hbs_handler($default, $tag, $content) {
return ''; // Don't show the shortcode or text bookended by the shortcode
}

Installation :

1. Unzip hide-broken-shortcodes.zip inside the /wp-content/plugins/ directory for your site (or install via the built-in WordPress plugin installer)
2. Activate the plugin through the 'Plugins' admin menu in WordPress
3. Optionally filter 'hide_broken_shortcode' if you want to customize the behavior of the plugin

License: Freeware

Related: hbs handler, don, youtube video, hide broken, plugins admin, 3d might, 200 or, special news, youtube dabc width, hooking function, desired content, Replace, Plugin, Post

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 0



More Similar Code

This plugin is designed to d-deDUfightd-deDt the broken images on your WordPress powered site. It works by inserting a javascript snippet in the output HTML code of your pages, which attaches itself to the onerror=".." events of the images, so if an image fails to load, this JS snippet is fired. You can customize what actions you want to perform on the broken images: hide them, style-them, replace them, etc - all this from the...



Objective: Glue Broken Pieces to make 8x8 Chess Board.

Steps:
1: Select any of the Broken Links (Dominoes represented on 5x5 Board).
2: Click on only one Button of Chess Board to paste the selected Link's image.



This plugin allows you to show and hide specific portions of content within a post or page. Visitors can then use custom show/hide links to show or hide the portions you've defined. The plugin enables a few WordPress shortcodes: [peekaboo],...



Geo-Targeting (GEO target) content based on userd¬DSdus country.

Features:

* Shortcodes for use in content.
* Show the content to users in multiple countries.
* Hide the content from users in multiple...



Template Tag Shortcodes is a plugin that turns many of the WordPress template tags into easy-to-use shortcodes.

This plugin was created so end users could make use of the template tags within their posts and pages. Currently, this...



Automatically remove the bad and broken links from the view of human visitors and search engine robots.

Some features:

* Broken Links Remover removes(hides) bad/broken links from the requestor's(search engine or human)...



Manage custom fields using the insert shortcodes [custom name="field-name" value="field-value"] or HTML conditional comments <!--custom name="field-name" value="field-value"--> in text of post. It's a...



Plugin adds report broken post option to each post and page. Report option is rendered on all posts and pages by default, but you can add categories, posts or pages to exclude report from. You can also add report link in different parts of blog....



Asp Script To Track Clicks, Hide Urls is a multi-platform compatible ASP script that can be used to track ad campaign URLs, measure effectiveness of each campaign, monitor clicks on various links or simply hide your affiliate links to protect your...



Hide Hyperlinks From Site Visitors is an easy to learn ASP.NET tutorial which gives you the method for creating the hyperlinks in the web pages and hide them from the website visitors. The hyperlink web control of ASP.NET is used to create...

User Review for Hide Broken Shortcodes
- required fields
     

Please enter text on the image