Skip to content

Instantly share code, notes, and snippets.

@tareq1988
Last active February 25, 2018 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tareq1988/187d2e50a0a291497d4d007d7fb72bd7 to your computer and use it in GitHub Desktop.
Save tareq1988/187d2e50a0a291497d4d007d7fb72bd7 to your computer and use it in GitHub Desktop.
Facebook Group to WP - Post Type Changer
<?php
/**
* Plugin Name: Facebook Group to WP - Post Type Changer
* Description: Changes the default Facebook Group post type to Post
* Plugin URI: https://wordpress.org/plugins/fb-group-to-wp/
* Author: Tareq Hasan
* Author URI: https://tareq.co
* Version: 1.0
* License: GPL2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
defined( 'ABSPATH' ) or exit;
/**
* Change the default `fb_group_post` to `post` post type
*
* @return string
*/
function fbgr2wp__change_post_type() {
return 'post';
}
add_filter( 'fbgr2wp_post_type', 'fbgr2wp__change_post_type' );
@tareq1988
Copy link
Author

Instructions

Download this file and place it to your Plugins folder, then activate the plugin. It should change the post type to default WordPress post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment