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

Socials feed #29

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Socials feed #29

wants to merge 6 commits into from

Conversation

Evkos
Copy link

@Evkos Evkos commented Feb 7, 2018

No description provided.

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' ) );
Copy link

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

* Register Socials post type
*/
public function register_socials_posttype() {
register_post_type( 'socials_feed', array(
Copy link

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

* Register Socials taxonomy
*/
public function register_socials_taxonomy() {
register_taxonomy( 'socials_category', array( 'socials_feed' ), array(
Copy link

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() {

Copy link

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' );
Copy link

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() {

Copy link

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

*/
public function insert_posts() {

$this->get_fb_posts();
Copy link

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

@ksamojlenko ksamojlenko closed this May 7, 2018
@ksamojlenko ksamojlenko reopened this May 7, 2018
@ksamojlenko ksamojlenko closed this May 7, 2018
@ksamojlenko ksamojlenko reopened this May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants