Last active
February 25, 2018 08:44
-
-
Save tareq1988/187d2e50a0a291497d4d007d7fb72bd7 to your computer and use it in GitHub Desktop.
Facebook Group to WP - Post Type Changer
This file contains hidden or 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
<?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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.