-
Notifications
You must be signed in to change notification settings - Fork 10
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
Socials feed #29
base: master
Are you sure you want to change the base?
Socials feed #29
Conversation
add_action( 'init', array( $this, 'register_socials_taxonomy' ) ); | ||
add_action( 'init', array( $this, 'create_settings_panel' ) ); | ||
|
||
add_action( 'jtf_social_sheduler', array( $this, 'get_social_posts' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where method for cron job? Add method for cron
framework/Supports/Socials_Feed.php
Outdated
* Register Socials post type | ||
*/ | ||
public function register_socials_posttype() { | ||
register_post_type( 'socials_feed', array( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post Type ID "socials_feed" add to constant
framework/Supports/Socials_Feed.php
Outdated
* Register Socials taxonomy | ||
*/ | ||
public function register_socials_taxonomy() { | ||
register_taxonomy( 'socials_category', array( 'socials_feed' ), array( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taxonomy ID "socials_category" add to constant
* @return mixed | ||
*/ | ||
public function get_fb_posts() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Exception for api connect
* @return mixed | ||
*/ | ||
public function get_insta_posts() { | ||
$instagram_api_key = Theme_Settings::get( 'instagram_api_key' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Exception for api connect
* Get posts from Twitter | ||
*/ | ||
public function get_twitter_posts() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Exception for api connect
framework/Supports/Socials_Feed.php
Outdated
*/ | ||
public function insert_posts() { | ||
|
||
$this->get_fb_posts(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create new method for get social posts to property posts and add him to construct
No description provided.