This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<a href="http://r3summit.dev/wp-content/uploads/2015/09/pic_article-big.jpg"> | |
<img src="http://r3summit.dev/wp-content/uploads/2015/09/pic_article-big.jpg" alt="pic_article-big" width="328" height="246" class="alignleft size-full wp-image-96"> | |
</a> | |
</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_shortcode( 'div', 'wp_doin_div_shortcode' ); | |
function wp_doin_div_shortcode($atts, $content = null) { | |
ob_start(); | |
// let's fetch all of the arguments of the shortcode | |
$atts = shortcode_atts( array( | |
'class' => 'wp-doin', | |
'heading' => 'Heading', | |
'subheading' => 'Subheading', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'acf_rwp_query', 'wp_doin_custom_query' ); | |
/** | |
* @hook acf_rwp_query | |
*/ | |
function wp_doin_custom_query($query) { | |
// say we want to limit the query to only single author | |
$query['author'] = 1; | |
return $query; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
remove_filter( 'acp_rwp_before', array( 'ACF_Helper', 'af_bf_content_filter' ) ); | |
add_filter( 'acp_rwp_before', 'wp_doin_before_custom_text', 999, 3 ); | |
/** | |
* @hook acp_rwp_before | |
*/ | |
function wp_doin_before_custom_text($before, $instance, $id) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// let's make call to the global gwrf variable visible after enabling Gravity Forms | |
window.gwrf; | |
(function ($) { | |
gwrf = function (args) { | |
// prototype arguments, created when we instantiate it | |
this.formId = args.formId; | |
this.spinnerUrl = args.spinnerUrl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// remember, the hook suffix, should contain the form id! | |
add_filter( 'gform_field_validation_1', 'wp_doin_validation_1', 10, 4 ); | |
/** | |
* Custom GF validation function used for pagination and required fields | |
* | |
* @return string | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_shortcode( 'verify_user_pass', 'wp_doin_verify_user_pass' ); | |
/** | |
* Shortcode which is used to cover Gravity Forms shortcode. It will not render the password | |
* reset form in case of invalid pass. | |
* | |
* @shortcode verify user pass | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', 'wp_doin_verify_user_key', 999 ); | |
/** | |
* Check if the user has hit the proper rest password page. The check is identical to that | |
* from wp-login.php, hence extra $_GET['method'] parameter was included to exclude redirects | |
* from wp-login.php file on standard password reset method. | |
* | |
* @hook wp_head |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( "gform_pre_submission_2", "wp_doin_pre_submission_2" ); | |
/** | |
* | |
* @param type $form | |
* @return type | |
*/ | |
function wp_doin_pre_submission_2($form) { |