Skip to content

Playgama/wordpress-plugin

Repository files navigation

Playgama: Embed Games and Monetize

Official WordPress plugin that allows you to earn up to 50% from ads & in-game purchases — no hosting or coding!

Description

Playgama: Embed Games and Monetize is a WordPress plugin that enables website owners and content creators to monetize their traffic through game widgets. By adding these widgets to your website, you can earn revenue from both advertisements and in-game purchases made by your visitors.

Key Features:

  • Easy integration with WordPress Block Editor (Gutenberg)
  • Shortcode support for use in classic editor or text widgets
  • Customizable widget dimensions
  • Asynchronous loading for optimal performance
  • Responsive design

Installation

From WordPress Admin Panel:

  1. Go to Plugins > Add New
  2. Search for "Playgama: Embed Games and Monetize"
  3. Click "Install Now" and then "Activate"

Manual Installation:

  1. Download the plugin ZIP file
  2. Upload the plugin files to the /wp-content/plugins/playgama-embed-games-monetize directory
  3. Activate the plugin through the 'Plugins' screen in WordPress

Usage

You can insert Playgama widgets in two ways:

1. Using the Block Editor:

  • Add the "Playgama: Embed Games and Monetize" block in the WordPress block editor
  • Enter your Widget ID in the block settings
  • Customize width and height as needed

2. Using a Shortcode:

[playgama_widget widget_id="your_widget_id" width="100%" height="200px"]

Parameters:

  • widget_id (required): Your unique widget ID from Playgama
  • width (optional): Width of the widget (e.g., "100%", "300px")
  • height (optional): Height of the widget (default: "200px")

Getting a Widget ID

To get your Widget ID:

  1. Create an account at Playgama Partners
  2. Create a new widget in your dashboard
  3. Copy the Widget ID for use in WordPress

Requirements

  • WordPress 6.7 or higher
  • PHP 7.4 or higher

Development

Building the Plugin

  1. Clone the repository
  2. Install dependencies with npm install or yarn install
  3. Start development server with npm start or yarn start
  4. Build production version with npm run build or yarn build
  5. Create a plugin ZIP with npm run plugin-zip or yarn plugin-zip

License

This project is licensed under the GPL-2.0-or-later License - see the LICENSE for details.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published