GithubHelp home page GithubHelp logo

calderawp / caldera-affiliates Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 608 KB

Automatically swap out the name of an affiliate partner in post content with your affiliate link.

CSS 4.19% JavaScript 91.19% Shell 0.27% PHP 4.36%

caldera-affiliates's Introduction

Caldera Affiliates

Easily swap out the name of an affiliate partner with your affiliate link.

Caldera Affiliates is a free plugin by CalderaWP.

What It Does

Easily swap out the name of an affiliate partner with your affiliate link. Create one or more groups of affiliate links, and when you use the name of an affiliate in your post content this plugin will replace it with the link you specify.

Makes it easy to add, update and remove affiliate links you use on your site.

License, Copyright etc.

Copyright 2015 CalderaWP LLC, David Cramer & Josh Pollock.

Licensed under the terms of the GNU General Public License version 2 or later. Please share with your neighbor.

caldera-affiliates's People

Contributors

shelob9 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

caldera-affiliates's Issues

Make sure strings are not replaced inside of a link.

Let's say I set "google" to replace with "http://google.com" then in a post I enter <a href="http://google.com">google</a> End result will be <a href="http://http://google.com.com"><a href="http://http://google.com.com"></a> or whatever esc_url() does with that mess.

We probably need to use regular expressions instead of string replace for this reason.

[feature request] limit replacements per page

provide option to limit the replacement to x times per page, and scatter replacement randomly

Ex:

website contains xyc 10 times and I want it to be replaced 3 times with -link to xyz-, do the following:

xyc
-link to xyz-
xyc
xyc
xyc
-link to xyz-
xyc
-link to xyz-
xyc
xyc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.