Skip to content
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

[DT-M3] Create dt-maarifa API to receive contact and interaction data #2

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ fabric.properties

# Editor-based Rest Client
.idea/httpRequests
*.xlsx
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion disciple-tools-maarifa.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ public static function instance() {
* @access private
*/
private function __construct() {
// $is_rest = dt_is_rest();
$is_rest = dt_is_rest();

if ( $is_rest && strpos( dt_get_url_path(), 'dt-maarifa' ) !== false ) {

require_once( 'rest-api/rest-api.php' ); // adds starter rest api class
}

// add post type and modifications to contacts
require_once( 'post-type/loader.php' );
Expand Down
Loading