Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WordPress_SexHackMe_Plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
WordPress_SexHackMe_Plugin
Commits
dd58c420
Commit
dd58c420
authored
Jul 07, 2022
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial implementation of plugin dependencies
parent
a9180fc5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3880 additions
and
1 deletion
+3880
-1
class-tgm-plugin-activation.php
inc/class-tgm-plugin-activation.php
+3853
-0
sexhackme.php
sexhackme.php
+27
-1
No files found.
inc/class-tgm-plugin-activation.php
0 → 100644
View file @
dd58c420
This source diff could not be displayed because it is too large. You can
view the blob
instead.
sexhackme.php
View file @
dd58c420
...
@@ -48,7 +48,33 @@ if(count($slug) > 1) {
...
@@ -48,7 +48,33 @@ if(count($slug) > 1) {
$FIRST_SLUG
=
explode
(
"#"
,
$FIRST_SLUG
)[
0
];
$FIRST_SLUG
=
explode
(
"#"
,
$FIRST_SLUG
)[
0
];
}
}
require_once
dirname
(
__FILE__
)
.
'/inc/class-tgm-plugin-activation.php'
;
add_action
(
'tgmpa_register'
,
'sexhackme_register_required_plugins'
);
function
sexhackme_register_required_plugins
()
{
$plugins
=
array
(
array
(
'name'
=>
'WooCommerce'
,
'slug'
=>
'woocommerce'
,
'required'
=>
false
,
//'is_callable' => 'wpseo_init',
)
);
$config
=
array
(
'id'
=>
'sexhackme'
,
// Unique ID for hashing notices for multiple instances of TGMPA.
'default_path'
=>
''
,
// Default absolute path to bundled plugins.
'menu'
=>
'tgmpa-install-plugins'
,
// Menu slug.
'parent_slug'
=>
'plugins.php'
,
// Parent menu slug.
'capability'
=>
'manage_options'
,
// Capability needed to view plugin install page, should be a capability associated with the parent menu used.
'has_notices'
=>
true
,
// Show admin notices or not.
'dismissable'
=>
true
,
// If false, a user cannot dismiss the nag message.
'dismiss_msg'
=>
''
,
// If 'dismissable' is false, this message will be output at top of nag.
'is_automatic'
=>
false
,
// Automatically activate plugins after installation or not.
'message'
=>
''
,
// Message to output right before the plugins table.
);
}
sexhack_log
(
"FIRST_SLUG:"
.
$FIRST_SLUG
.
" REQUEST:"
.
$_SERVER
[
'REQUEST_URI'
]
.
" QUERY:"
.
$_SERVER
[
'QUERY_STRING'
]
);
sexhack_log
(
"FIRST_SLUG:"
.
$FIRST_SLUG
.
" REQUEST:"
.
$_SERVER
[
'REQUEST_URI'
]
.
" QUERY:"
.
$_SERVER
[
'QUERY_STRING'
]
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment