Skip to content

Commit

Permalink
rename plugin 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nasyx-rakeeb committed Jan 21, 2023
1 parent d46b0ae commit 05df621
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Schema Pro
# Schema Optimizer Pro

A simple WordPress plugin that automatically generates custom schema markup for better SEO. Improve your website's visibility in search results and increase traffic with minimal effort.

Expand All @@ -12,7 +12,7 @@ A simple WordPress plugin that automatically generates custom schema markup for
1. Download the plugin from the WordPress repository or from the releases page on this repository.
2. Install the plugin in your WordPress site by going to Plugins > Add New > Upload Plugin.
3. Activate the plugin.
4. Go to the plugin settings page (Settings > Schema Pro) to configure the plugin.
4. Go to the plugin settings page (Settings > Schema Optimizer Pro) to configure the plugin.
5. Start improving your website's visibility in search results and increase traffic.

## Requirements
Expand All @@ -22,7 +22,7 @@ A simple WordPress plugin that automatically generates custom schema markup for
- Plugin created by [Nasyx Rakeeb](https://nasyxrakeeb.vercel.app)

## License
- This plugin is licensed under [GPL2](https://github.com/nasyx-rakeeb/schema-pro/blob/main/LICENSE.txt)
- This plugin is licensed under [GPL2](https://github.com/nasyx-rakeeb/schema-optimizer-pro/blob/main/LICENSE.txt)

## Changelog
- 1.0 - Initial release
Expand Down
10 changes: 5 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
=== Schema Pro ===
=== Schema Optimizer Pro ===
Contributors: Nasyx Rakeeb
Author link: https://nasyxrakeeb.vercel.app
Plugin URI: https://github.com/nasyx-rakeeb/schema-pro/
Plugin URI: https://github.com/nasyx-rakeeb/schema-optimizer-pro/
Tags: schema markup, SEO, traffic
Requires at least: 4.5
Tested up to: 6.1.1
Requires PHP: 5.6
Stable tag: 1.0
License: GPL2
License URI: https://github.com/nasyx-rakeeb/schema-pro/blob/main/LICENSE.txt
License URI: https://github.com/nasyx-rakeeb/schema-optimizer-pro/blob/main/LICENSE.txt

A plugin that automatically generates and adds appropriate schema markup to improve SEO and increase traffic.

== Description ==

Schema Pro is a plugin that automatically generates and adds appropriate schema markup to improve SEO and increase traffic. This plugin allows you to add custom fields to use for the schema markup and also includes options for caching and debug mode for improved performance and validation.
Schema Optimizer Pro is a plugin that automatically generates and adds appropriate schema markup to improve SEO and increase traffic. This plugin allows you to add custom fields to use for the schema markup and also includes options for caching and debug mode for improved performance and validation.

== Installation ==

1. Install the plugin through the WordPress repository or by uploading the files to your server.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to the 'Schema Pro' settings page and configure the plugin according to your needs.
3. Go to the 'Schema Optimizer Pro' settings page and configure the plugin according to your needs.

== Frequently Asked Questions ==

Expand Down
36 changes: 18 additions & 18 deletions schema-pro.php → schema-optimizer-pro.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
/*
* Plugin Name: Schema Pro
* Text Domain: schema-pro
* Description: Schema Pro lets you easily add schema markup to your website, increasing search visibility and traffic, with ability to customize schema markup using custom fields, optimize performance with caching and validate with debug mode.
* Plugin Name: Schema Optimizer Pro
* Text Domain: schema-optimizer-pro
* Description: Schema Optimizer Pro lets you easily add schema markup to your website, increasing search visibility and traffic, with ability to customize schema markup using custom fields, optimize performance with caching and validate with debug mode.
* Version: 1.0
* Requires PHP: 5.6
* Requires at least: 4.5
* Tested up to: 6.1.1
* Plugin URI: https://github.com/nasyx-rakeeb/schema-pro
* Plugin URI: https://github.com/nasyx-rakeeb/schema-optimizer-pro
* Author URI: https://nasyxrakeeb.vercel.app
* Author: Nasyx Rakeeb
* License: GPL2
* License URI: https://github.com/nasyx-rakeeb/schema-pro/blob/main/LICENSE.txt
* License URI: https://github.com/nasyx-rakeeb/schema-optimizer-pro/blob/main/LICENSE.txt
*/

class SEO_Schema_Markup_Generator {
Expand All @@ -21,35 +21,35 @@ public function __construct() {
add_action('admin_init', array($this, 'register_settings'));

function add_settings_link($links) {
$settings_link = '<a href="admin.php?page=schema-pro">Settings</a>';
$settings_link = '<a href="admin.php?page=schema-optimizer-pro">Settings</a>';
array_unshift($links, $settings_link);
return $links;
}
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'add_settings_link');
}

public function add_settings_page() {
add_menu_page('Schema Pro', 'Schema Pro', 'manage_options', 'schema-pro', array($this, 'display_settings_page'), 'dashicons-admin-generic', 99);
add_menu_page('Schema Optimizer Pro', 'Schema Optimizer Pro', 'manage_options', 'schema-optimizer-pro', array($this, 'display_settings_page'), 'dashicons-admin-generic', 99);
}

public function register_settings() {
register_setting('schema-pro-options', 'schema-pro-options', array($this, 'sanitize_options'), array('custom_fields' => '', 'cache_enabled' => 0, 'debug_mode' => 0));
register_setting('schema-optimizer-pro-options', 'schema-optimizer-pro-options', array($this, 'sanitize_options'), array('custom_fields' => '', 'cache_enabled' => 0, 'debug_mode' => 0));
}

public function display_settings_page() {
$options = get_option('schema-pro-options');
$options = get_option('schema-optimizer-pro-options');
?>
<div class="wrap">
<h1>Schema Pro</h1>
<h1>Schema Optimizer Pro</h1>
<form method="post" action="options.php">
<?php settings_fields('schema-pro-options'); ?>
<?php settings_fields('schema-optimizer-pro-options'); ?>
<table class="form-table">
<tr>
<th>
<label for="schema-pro-options[custom_fields]">Custom Fields</label>
<label for="schema-optimizer-pro-options[custom_fields]">Custom Fields</label>
</th>
<td>
<input type="text" id="schema-pro-options[custom_fields]" name="schema-pro-options[custom_fields]" value="<?php echo esc_attr(isset($options['custom_fields']) ? $options['custom_fields'] : ''); ?>" class="regular-text">
<input type="text" id="schema-optimizer-pro-options[custom_fields]" name="schema-optimizer-pro-options[custom_fields]" value="<?php echo esc_attr(isset($options['custom_fields']) ? $options['custom_fields'] : ''); ?>" class="regular-text">
<p class="description">
Enter a comma-separated list of custom fields to use for the schema markup.
</p>
Expand All @@ -60,8 +60,8 @@ public function display_settings_page() {

</th>
<td>
<input type="checkbox" id="schema-pro-options[cache_enabled]" name="schema-pro-options[cache_enabled]" value="1" <?php checked(isset($options['cache_enabled']) ? $options['cache_enabled'] : 0, 1); ?>>
<label for="schema-pro-options[cache_enabled]"><strong>Enable caching</strong></label>
<input type="checkbox" id="schema-optimizer-pro-options[cache_enabled]" name="schema-optimizer-pro-options[cache_enabled]" value="1" <?php checked(isset($options['cache_enabled']) ? $options['cache_enabled'] : 0, 1); ?>>
<label for="schema-optimizer-pro-options[cache_enabled]"><strong>Enable caching</strong></label>
<p class="description">
Enable caching of the generated schema markup for improved performance.
</p>
Expand All @@ -73,8 +73,8 @@ public function display_settings_page() {

</th>
<td>
<input type="checkbox" id="schema-pro-options[debug_mode]" name="schema-pro-options[debug_mode]" value="1" <?php checked(isset($options['debug_mode']) ? $options['debug_mode'] : 0, 1); ?>>
<label for="schema-pro-options[debug_mode]"><strong>Debug mode</strong></label>
<input type="checkbox" id="schema-optimizer-pro-options[debug_mode]" name="schema-optimizer-pro-options[debug_mode]" value="1" <?php checked(isset($options['debug_mode']) ? $options['debug_mode'] : 0, 1); ?>>
<label for="schema-optimizer-pro-options[debug_mode]"><strong>Debug mode</strong></label>
<p class="description">
Enable debug mode to view and validate the generated schema markup.
</p>
Expand All @@ -98,7 +98,7 @@ public function sanitize_options($options) {
public function generate_schema_markup() {
global $post;

$options = get_option('schema-pro-options');
$options = get_option('schema-optimizer-pro-options');

if ($options['cache_enabled']) {
// check for cached schema markup
Expand Down

0 comments on commit 05df621

Please sign in to comment.