-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #685 from ConvertKit/contact-form-7-prefix-form-id…
…-settings Contact Form 7: Prefix Form ID in Settings
- Loading branch information
Showing
12 changed files
with
427 additions
and
25 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
/** | ||
* ConvertKit Sequences Resource class. | ||
* | ||
* @package ConvertKit | ||
* @author ConvertKit | ||
*/ | ||
|
||
/** | ||
* Reads ConvertKit Sequences from the options table, and refreshes | ||
* ConvertKit Sequences data stored locally from the API. | ||
* | ||
* @since 2.5.2 | ||
*/ | ||
class ConvertKit_Resource_Sequences extends ConvertKit_Resource_V4 { | ||
|
||
/** | ||
* Holds the Settings Key that stores site wide ConvertKit settings | ||
* | ||
* @var string | ||
*/ | ||
public $settings_name = 'convertkit_sequences'; | ||
|
||
/** | ||
* The type of resource | ||
* | ||
* @var string | ||
*/ | ||
public $type = 'sequences'; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @since 2.5.2 | ||
* | ||
* @param bool|string $context Context. | ||
*/ | ||
public function __construct( $context = false ) { | ||
|
||
// Initialize the API if the Access Token has been defined in the Plugin Settings. | ||
$settings = new ConvertKit_Settings(); | ||
if ( $settings->has_access_and_refresh_token() ) { | ||
$this->api = new ConvertKit_API_V4( | ||
CONVERTKIT_OAUTH_CLIENT_ID, | ||
CONVERTKIT_OAUTH_CLIENT_REDIRECT_URI, | ||
$settings->get_access_token(), | ||
$settings->get_refresh_token(), | ||
$settings->debug_enabled(), | ||
$context | ||
); | ||
} | ||
|
||
// Call parent initialization function. | ||
parent::init(); | ||
|
||
} | ||
|
||
} |
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
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
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
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
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
Oops, something went wrong.