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( 'jet-form-builder/custom-action/test-hook', function( $request, $action_handler ) { | |
| //get value of field field1 | |
| $value = $request['field1']; | |
| //or using jet_fb_context()->resolve_request() | |
| $value = jet_fb_context()->resolve_request()['field1']; | |
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 | |
| /** | |
| * 'api-request' - is a customm hook name | |
| */ | |
| add_action( 'jet-form-builder/custom-action/api-request', function( $request, $action_handler ) { | |
| $post_id = ! empty( $request['inserted_post_id'] ) ? $request['inserted_post_id'] : false; | |
| if ( ! $post_id ) { | |
| return; |
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 | |
| namespace ElementorControls; | |
| if (!defined('ABSPATH')) exit; // Exit if accessed directly | |
| class Elementor_Custom_Controls { | |
| public function includes() { | |
| require_once(plugin_dir_path(__FILE__).'inc/elementor/image-selector-control.php'); | |
| } |
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 | |
| /** | |
| * Post URL list | |
| */ | |
| if (!function_exists('prefix_get_all_posts_url')) { | |
| function prefix_get_all_posts_url($posttype = 'post') { | |
| $args = array( | |
| 'post_type' => $posttype, | |
| 'post_status' => 'publish', |
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 | |
| namespace Aepro; | |
| use Elementor\Group_Control_Background; | |
| use Elementor\Group_Control_Box_Shadow; | |
| use Elementor\Widget_Base; | |
| use Elementor\Controls_Manager; | |
| use Elementor\Group_Control_Border; |
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 | |
| /** | |
| * Hubspot Integration for Ninja Forms. | |
| * | |
| * @package Nano | |
| */ | |
| class NF_Hubspot { | |
| // Hooks into ninja_forms_after_submission | |
| public function init() { |
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 if (!defined('ABSPATH')) exit; | |
| /** | |
| * Class NF_Action_Save | |
| */ | |
| if (class_exists('NF_Abstracts_Action')) { | |
| final class NF_Actions_Inbound_Store_Lead extends NF_Abstracts_Action { | |
| /** | |
| * @var 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
| # remove .DS_Store file from GitHub that MAC OS X creates | |
| # find and remove .DS_Store | |
| find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch | |
| # create .gitignore file, if needed | |
| touch .gitignore | |
| echo .DS_Store > .gitignore | |
| # push changes to GitHub |
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 | |
| /** | |
| * Plugin Name: Re-send AffiliateWP affiliate approval email example | |
| */ | |
| function affwp_custom_notify_on_approval( $affiliate_id = 0, $status = '', $old_status = '' ) { | |
| if( empty( $affiliate_id ) ) { | |
| return; | |
| } | |
| if( 'active' != $status || 'pending' != $old_status ) { |
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 | |
| /** | |
| * Send a Message to a Slack Channel. | |
| * | |
| * In order to get the API Token visit: | |
| * | |
| * 1.) Create an APP -> https://api.slack.com/apps/ | |
| * 2.) See menu entry "Install App" | |
| * 3.) Use the "Bot User OAuth Token" |
NewerOlder