Tag: Smart Content Links API

How to modify content from 3rd plugin via scl_content API in Smart Content Links with Tooltip plugin? Version 2.0 Released

Hi dear WordPress tooltip users, hope this message find you are doing well and have happy days with your family:) We just released Smart Content Links with Tooltip plugin 2.0, in this version, we added an API : “scl_content” filter for Smart Content Links with Tooltip plugin.

what wordpress filter?

A WordPress filter is a function that allows developers to modify the behavior of WordPress core functions, themes, and plugins. Filters are used to modify the output of WordPress functions or to add new functionality to WordPress. Filters are applied to data before it is displayed on the website or stored in the database. They are used to modify the content, title, meta tags, and other elements of a WordPress site. Some examples of WordPress filters include the_content, the_title, wp_title, and wp_head. Developers can create their own custom filters to modify WordPress functionality to suit their needs.

For example, wordpress tooltip plugin and smart content link plugin using the wordpress  `the_content` filter, it is a WordPress filter that allows developers to modify the content of a post or page before it is displayed on the front-end of a website. This filter is applied to the post content when it is retrieved from the database and before it is displayed on the website. Developers can use this filter to add or remove content, modify the formatting of the content, or even add custom functionality to the content. The `the_content` filter is commonly used in WordPress themes and plugins to customize the way content is displayed on a website.

So add scl_content filter in smart content link plugin allows other developers or users to modify the output or behavior of smart content links without having to modify the plugin code directly. This makes smart content link plugin more flexible and customizable, as users can make changes without having to worry about their modifications being overwritten when the plugin is updated.

How to use scl_content filter in smart content link plugin?

easy, for example, in wordpress tooltips pro plus plugin , we developed a tooltips for smart content link addon, in which when users mouse hover a smart content link  in your wordpress post, they will see the video / image / audio / detailed document of that link, this will greatly enrich the functionality of your LINKs 🙂

You can do it by this way:

add_filtler(‘scl_content’, ‘tooltipsforSCL’, 10,1)

Then in the function do something

function tooltipsforSCL()

{

…do something

}

Tagged with: , ,
Top