New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update yourls_add_new_link function #2452

Merged
merged 1 commit into from Oct 26, 2018

Conversation

Projects
None yet
2 participants
@adigitalife
Contributor

adigitalife commented Oct 26, 2018

I added $return to post_add_new_link:

yourls_do_action( 'post_add_new_link', $url, $keyword, $title, $return );

This makes it easier to add conditional actions. For example, I might want to do certain actions depending on whether $return['status'] is 'success' or 'fail'.

Update functions.php
I added $return to post_add_new_link:

	yourls_do_action( 'post_add_new_link', $url, $keyword, $title, $return );

This makes it easier to add conditional actions.  For example, I might want to do certain actions depending on whether $return['status'] is 'success' or 'fail'.

@ozh ozh merged commit 1cfe955 into YOURLS:master Oct 26, 2018

3 checks passed

Codacy/PR Quality Review Up to standards. A positive pull request.
Details
Scrutinizer No new issues
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment