This file contains 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 ConversionXL\Institute\Plugin\Integrations\AutomateWoo\Triggers; | |
use AutomateWoo\Customer_Factory; | |
use AutomateWoo\Fields\Text; | |
use AutomateWoo\Trigger; | |
defined( 'ABSPATH' ) || exit; | |
class FormEntryCreated extends Trigger { |
This file contains 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 | |
/** | |
* Selectively avoid triggering some `_doing_it_wrong()` errors. | |
* | |
* @see https://developer.wordpress.org/reference/functions/_doing_it_wrong/ | |
*/ | |
/** | |
* AutomateWoo workflows sometimes need internal meta keys. | |
* |
This file contains 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 | |
public function page_title( string $title ): string { | |
$endpoint_title = $this->get_endpoint_title(); | |
if ( $endpoint_title && false === strpos( $title, $endpoint_title ) ) { | |
$title = $endpoint_title; | |
remove_filter( 'single_post_title', [ $this, 'page_title' ] ); | |
} |
This file contains 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 | |
// See more in wp-includes/js/media-editor.js | |
// wp.media._galleryDefaults | |
// and wp-includes/media.php | |
add_filter( 'media_view_settings', function( $settings, $post ) { | |
$settings['galleryDefaults'] = array( | |
itemtag => 'dl', | |
icontag => 'dt', |