includes/class-freemius.php
function get_plugin_data() {
            if ( ! isset( $this->_plugin_data ) ) {
                self::require_plugin_essentials();

                if ( $this->is_plugin() ) {
                    /**
                     * @author Vova Feldman (@svovaf)
                     * @since  1.2.0 When using get_plugin_data() do NOT translate plugin data.
                     *
                     * @link   https://github.com/Freemius/wordpress-sdk/issues/77
                     */
                    $plugin_data = get_plugin_data(
                        $this->_plugin_main_file_path,
                        false,
                        false
                    );
                } else {
                    $theme_data = wp_get_theme();

                    if ( $this->_plugin_basename !== $theme_data->get_stylesheet() && is_child_theme() ) {
                        $parent_theme = $theme_data->parent();

                        if ( ( $parent_theme instanceof WP_Theme ) && $this->_plugin_basename === $parent_theme->get_stylesheet() ) {
                            $theme_data = $parent_theme;
                        }
                    }

                    $plugin_data = array(
                        'Name'        => $theme_data->get( 'Name' ),
                        'Version'     => $theme_data->get( 'Version' ),
                        'Author'      => $theme_data->get( 'Author' ),
                        'Description' => $theme_data->get( 'Description' ),
                        'PluginURI'   => $theme_data->get( 'ThemeURI' ),
                    );
                }

                $this->_plugin_data = $plugin_data;
            }

            return $this->_plugin_data;
        }
function get_plugin_data() {
            if ( ! isset( $this->_plugin_data ) ) {
                self::require_plugin_essentials();

                if ( $this->is_plugin() ) {
                    /**
                     * @author Vova Feldman (@svovaf)
                     * @since  1.2.0 When using get_plugin_data() do NOT translate plugin data.
                     *
                     * @link   https://github.com/Freemius/wordpress-sdk/issues/77
                     */
                    $plugin_data = get_plugin_data(
                        $this->_plugin_main_file_path,
                        false,
                        false
                    );
                } else {
                    $theme_data = wp_get_theme();

                    if ( $this->_plugin_basename !== $theme_data->get_stylesheet() && is_child_theme() ) {
                        $parent_theme = $theme_data->parent();

                        if ( ( $parent_theme instanceof WP_Theme ) && $this->_plugin_basename === $parent_theme->get_stylesheet() ) {
                            $theme_data = $parent_theme;
                        }
                    }

                    $plugin_data = array(
                        'Name'        => $theme_data->get( 'Name' ),
                        'Version'     => $theme_data->get( 'Version' ),
                        'Author'      => $theme_data->get( 'Author' ),
                        'Description' => $theme_data->get( 'Description' ),
                        'PluginURI'   => $theme_data->get( 'ThemeURI' ),
                    );
                }

                $this->_plugin_data = $plugin_data;
            }

            return $this->_plugin_data;
        }
function get_plugin_data ( ) { if ( ! isset ( $ this -> _plugin_data ) ) { self :: require_plugin_essentials ( ) ; if ( $ this -> is_plugin ( ) ) { /**
                     * @author Vova Feldman (@svovaf)
                     * @since  1.2.0 When using get_plugin_data() do NOT translate plugin data.
                     *
                     * @link   https://github.com/Freemius/wordpress-sdk/issues/77
                     */ $ plugin_data = get_plugin_data ( $ this -> _plugin_main_file_path , false , false ) ; } else { $ theme_data = wp_get_theme ( ) ; if ( $ this -> _plugin_basename !== $ theme_data -> get_stylesheet ( ) && is_child_theme ( ) ) { $ parent_theme = $ theme_data -> parent ( ) ; if ( ( $ parent_theme instanceof WP_Theme ) && $ this -> _plugin_basename === $ parent_theme -> get_stylesheet ( ) ) { $ theme_data = $ parent_theme ; } } $ plugin_data = array ( 'Name' => $ theme_data -> get ( 'Name' ) , 'Version' => $ theme_data -> get ( 'Version' ) , 'Author' => $ theme_data -> get ( 'Author' ) , 'Description' => $ theme_data -> get ( 'Description' ) , 'PluginURI' => $ theme_data -> get ( 'ThemeURI' ) , ) ; } $ this -> _plugin_data = $ plugin_data ; } return $ this -> _plugin_data ; }
Return plugin data.

@author Vova Feldman (@svovaf)
@since  1.0.1

@return array
Return plugin data .